Automatic NixOS upgrade module
This commit is contained in:
parent
93da1c9046
commit
05f6a1e7f6
2 changed files with 18 additions and 0 deletions
17
modules/auto-upgrade/default.nix
Normal file
17
modules/auto-upgrade/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
config,
|
||||
options,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flake = "github:aciceri/nixfleet#${config.networking.hostName}";
|
||||
flags =
|
||||
lib.lists.optional
|
||||
(builtins.hasAttr "ccrEmacs" options)
|
||||
["--update-input" "ccrEmacs" "ccrEmacs"];
|
||||
dates = "daily";
|
||||
allowReboot = false;
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
}: {
|
||||
imports = fleetModules [
|
||||
"nix"
|
||||
"auto-upgrade"
|
||||
];
|
||||
|
||||
hardware.i2c.enable = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue