treewide: optionalize mkTarget's humanName and name arguments
Optionalize mkTarget's 'humanName' and 'name' arguments by inferring 'humanName' from the 'name' attribute in the /modules/<MODULE>/meta.nix file, and 'name' from the /modules/<NAME>/ directory name. Inferring the 'humanName' and 'name' arguments ensures consistency and reduces boilerplate. The 'humanName' and 'name' arguments are optionalized instead of removed because complex modules generating target derivations need to distinguish between them. Closes: https://github.com/nix-community/stylix/issues/1661
This commit is contained in:
parent
16df6b8448
commit
dfc859f54d
108 changed files with 52 additions and 327 deletions
|
|
@ -6,8 +6,6 @@
|
|||
...
|
||||
}:
|
||||
mkTarget {
|
||||
name = "feh";
|
||||
humanName = "the desktop background using Feh";
|
||||
autoEnable =
|
||||
with config.xsession.windowManager;
|
||||
bspwm.enable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue