From 1b57fbd0aa4e790e3dbb007ea315b1af6efabf31 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Wed, 5 Feb 2025 15:41:47 -0800 Subject: migration: git --- core/packages.nix | 1 - snowfall/modules/nixos/apps/git/default.nix | 13 +++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 snowfall/modules/nixos/apps/git/default.nix 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; + }; +} -- cgit v1.2.3