mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Import all wrappers automatically
This commit is contained in:
parent
eb89e60c02
commit
78e7444c33
1 changed files with 5 additions and 5 deletions
|
|
@ -14,9 +14,9 @@
|
|||
.${wrapperName}
|
||||
.wrapped;
|
||||
in {
|
||||
_module.args.myWrappers = {
|
||||
spotify = import ./spotify.nix {inherit assembleWrapper pkgs lib;};
|
||||
obsidian = import ./obsidian.nix {inherit assembleWrapper pkgs lib;};
|
||||
marktext = import ./marktext.nix {inherit assembleWrapper pkgs lib;};
|
||||
};
|
||||
_module.args.myWrappers = lib.pipe (builtins.readDir ./.) [
|
||||
(lib.filterAttrs (name: value: value == "regular"))
|
||||
(lib.filterAttrs (name: value: name != "default.nix"))
|
||||
(lib.concatMapAttrs (name: _: {${lib.removeSuffix ".nix" name} = import ./${name} {inherit assembleWrapper pkgs lib;};}))
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue