diff options
| -rw-r--r-- | core/packages.nix | 1 | ||||
| -rw-r--r-- | snowfall/modules/nixos/apps/git/default.nix | 13 |
2 files changed, 13 insertions, 1 deletions
diff --git a/core/packages.nix b/core/packages.nix index fc8f8eb..4ede458 100644 --- a/core/packages.nix +++ b/core/packages.nix @@ -6,7 +6,6 @@ (writeShellScriptBin "rbf" "sudo nixos-rebuild switch --flake path:/etc/nixos") moreutils - git wget killall jq diff --git a/snowfall/modules/nixos/apps/git/default.nix b/snowfall/modules/nixos/apps/git/default.nix new file mode 100644 index 0000000..e7a2afa --- /dev/null +++ b/snowfall/modules/nixos/apps/git/default.nix @@ -0,0 +1,13 @@ +{ options, config, lib, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.apps.git; +in { + options.${namespace}.apps.git = with types; { + enable = mkEnableOption "git"; + }; + + config = mkIf cfg.enable { + programs.git.enable = true; + }; +} |