added autoupdate
This commit is contained in:
parent
62493285d2
commit
fe70a62430
2 changed files with 14 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,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./autoupdate.nix
|
||||||
|
];
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue