initial nixos-config
This commit is contained in:
14
hosts/modules/auto-upgrade.nix
Normal file
14
hosts/modules/auto-upgrade.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, inputs, ... }:
|
||||
let
|
||||
inherit (config.networking) hostName; # Inherit variable
|
||||
isClean = inputs.self ? rev; # Only enable if current config came from clean tree
|
||||
in
|
||||
{
|
||||
system.autoUpgrade = { # NixOS auto upgrade
|
||||
enable = isClean;
|
||||
dates = "hourly";
|
||||
flags = [
|
||||
"--refresh"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user