Compare commits
2 commits
d71551f476
...
c8882354e2
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | c8882354e2 | ||
Dmitry Voronin | 0b7f258ce7 |
|
@ -10,6 +10,7 @@
|
||||||
];
|
];
|
||||||
script = ''
|
script = ''
|
||||||
${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --flake "/root/.config/linux/system#$HOSTNAME"
|
${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --flake "/root/.config/linux/system#$HOSTNAME"
|
||||||
|
${config.nix.package.out}/bin/nix-collect-garbage --delete-older-than 7d
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
systemd.timers.autoupdate = {
|
systemd.timers.autoupdate = {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{ environment, ... }: {
|
{ environment, ... }: {
|
||||||
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
||||||
nix.extraOptions = "experimental-features = nix-command flakes";
|
nix.extraOptions = ''
|
||||||
nix.gc.automatic = false;
|
experimental-features = nix-command flakes
|
||||||
nix.gc.dates = "daily";
|
keep-derivations = true
|
||||||
nix.gc.options = "--delete-older-than 7d";
|
keep-outputs = true
|
||||||
|
'';
|
||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue