mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21: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}
|
.${wrapperName}
|
||||||
.wrapped;
|
.wrapped;
|
||||||
in {
|
in {
|
||||||
_module.args.myWrappers = {
|
_module.args.myWrappers = lib.pipe (builtins.readDir ./.) [
|
||||||
spotify = import ./spotify.nix {inherit assembleWrapper pkgs lib;};
|
(lib.filterAttrs (name: value: value == "regular"))
|
||||||
obsidian = import ./obsidian.nix {inherit assembleWrapper pkgs lib;};
|
(lib.filterAttrs (name: value: name != "default.nix"))
|
||||||
marktext = import ./marktext.nix {inherit assembleWrapper pkgs lib;};
|
(lib.concatMapAttrs (name: _: {${lib.removeSuffix ".nix" name} = import ./${name} {inherit assembleWrapper pkgs lib;};}))
|
||||||
};
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue