diff options
Diffstat (limited to 'snowfall/modules/nixos/apps/git')
| -rw-r--r-- | snowfall/modules/nixos/apps/git/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
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; + }; +} |