add gitMinimal if nix is enabled

This commit is contained in:
Charlotte 🦝 Delenk 2024-10-31 10:10:04 +01:00
parent 3676acf27d
commit cf3548a8a2
2 changed files with 6 additions and 1 deletions

View file

@ -36,6 +36,5 @@ in {
set -eux
exec ${pkgs.disko}/bin/disko-install --flake "${nixos-config}#not522" --disk main "${nixos-config.nixosConfigurations.not522.config.disko.devices.disk.main.device}"
'')
pkgs.gitMinimal
];
}

View file

@ -1,10 +1,16 @@
{
lix-module,
inTester,
config,
pkgs,
...
}: {
imports =
if inTester
then []
else [lix-module.nixosModules.default];
environment.systemPackages = mkIf config.nix.enable [
pkgs.gitMinimal
];
}