🧑 feat(nix): Auto gc; disable git tree dirty warning

This commit is contained in:
punkfairie 2024-11-03 21:34:46 -08:00
parent 7ff99d5206
commit 9b36d4bd8e
Signed by: punkfairie
GPG key ID: 01823C057725C266

View file

@ -19,11 +19,21 @@
# Tell nix what version it is.
nix.package = pkgs.nix;
# Enable flakes.
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nix = {
# Enable flakes.
settings.experimental-features = [
"nix-command"
"flakes"
];
# Disable that annoying "git tree is dirty" warning.
extraOptions = ''
warn-dirty = false
'';
# Garbage collection.
gc.automatic = true;
};
xdg.configFile."nixpkgs/config.nix".text = # nix
''