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

This commit is contained in:
punkfairie 2024-11-03 21:34:46 -08:00
parent 2c475ffc34
commit 090954cd94

View file

@ -19,11 +19,21 @@
# Tell nix what version it is. # Tell nix what version it is.
nix.package = pkgs.nix; nix.package = pkgs.nix;
# Enable flakes. nix = {
nix.settings.experimental-features = [ # Enable flakes.
"nix-command" settings.experimental-features = [
"flakes" "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 xdg.configFile."nixpkgs/config.nix".text = # nix
'' ''