🧑 feat(nix): Auto gc; disable git tree dirty warning
This commit is contained in:
parent
2c475ffc34
commit
090954cd94
1 changed files with 15 additions and 5 deletions
|
@ -19,12 +19,22 @@
|
||||||
# Tell nix what version it is.
|
# Tell nix what version it is.
|
||||||
nix.package = pkgs.nix;
|
nix.package = pkgs.nix;
|
||||||
|
|
||||||
|
nix = {
|
||||||
# Enable flakes.
|
# Enable flakes.
|
||||||
nix.settings.experimental-features = [
|
settings.experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"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
|
||||||
''
|
''
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue