diff options
Diffstat (limited to 'common/programs/default.nix')
| -rw-r--r-- | common/programs/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/common/programs/default.nix b/common/programs/default.nix new file mode 100644 index 0000000..9768774 --- /dev/null +++ b/common/programs/default.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +let + programs = [ + "hyprland" + "neovim" + "zsh" + ]; +in +builtins.listToAttrs ( + map (n: { + name = n; + value = + if builtins.pathExists ./${n}.nix then + (import ./${n}.nix { inherit pkgs; }) + else + { enable = true; }; + }) programs +) |