Compare commits
3 commits
62493285d2
...
fefa12b881
Author | SHA1 | Date | |
---|---|---|---|
|
fefa12b881 | ||
|
d4f3f586c6 | ||
|
fe70a62430 |
4 changed files with 32 additions and 0 deletions
11
hosts/common/autoupdate.nix
Normal file
11
hosts/common/autoupdate.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
dates = "04:00";
|
||||
flake = "https://git.huwe.mooo.com/willifan/nix-config.git";
|
||||
persistent = true;
|
||||
randomizedDelaySec = "5min";
|
||||
fixedRandomDelay = true;
|
||||
};
|
||||
}
|
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./autoupdate.nix
|
||||
./garbage-collect.nix
|
||||
./optimise.nix
|
||||
];
|
||||
system.stateVersion = "23.11";
|
||||
}
|
9
hosts/common/garbage-collect.nix
Normal file
9
hosts/common/garbage-collect.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "04:30";
|
||||
persistent = true;
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
}
|
7
hosts/common/optimise.nix
Normal file
7
hosts/common/optimise.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
nix.optimise = {
|
||||
automatic = true;
|
||||
dates = [ "05:00" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue