dank-material-shell: add module - #9686
Open
artur-sannikov wants to merge 4 commits into
Open
Conversation
artur-sannikov
force-pushed
the
add-module-dms
branch
from
July 20, 2026 07:28
9dedc62 to
f8a68a1
Compare
It's already implemented in their own repo. I stitched together several files (home.nix, common.nix, options.nix).
artur-sannikov
force-pushed
the
add-module-dms
branch
from
July 20, 2026 07:35
f8a68a1 to
aed0bc3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a module for DankMaterialShell, a bar for Wayland window managers.
They already provide a module for Home Manager in their repo, so I stitched together what they already had there and tested that it works with Home Manager.
One thing I did not manage to do is the automatic reloading of the systemd unit when the config changes. NixOS provides this functionality with systemd.user.services..reloadIfChanged, but it does not seem to work with Home Manager. Actually, their module also does not reload the unit.
Also, it's a "program", not a service, even though some other shells like
hyprshellare services. I just followed what they already had in the repo, and wanted to maintain compatibility with stylix, which assumesprograms.dank-material-shell.Test the module by setting the flake input of home-manager to
github:artur-sannikov/home-manager/add-module-dms, removeinputs.nixpkgs.follows = "nixpkgs", and then use the example-config.nix from the tests of this PR.I'm on NixOS, using home-manager as a module, so I would appreciate tests from those who do not use flakes/use standalone home-manager.
Checklist
Change is backwards compatible.
Code formatted with
nix fmtornix-shell -A dev --run treefmt.Code tested through
nix build .#test-allor a targeted
nix run .#tests -- <pattern>.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
If this PR adds an exciting new feature or contains a breaking change.