20 lines
401 B
Nix
20 lines
401 B
Nix
|
{
|
||
|
config,
|
||
|
inputs,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (config.networking) hostName;
|
||
|
# Only enable auto upgrade if current config came from a clean tree
|
||
|
# This avoids accidental auto-upgrades when working locally.
|
||
|
isClean = inputs.self ? rev;
|
||
|
in {
|
||
|
system.autoUpgrade = {
|
||
|
enable = isClean;
|
||
|
dates = "hourly";
|
||
|
flags = [
|
||
|
"--refresh"
|
||
|
];
|
||
|
flake = "github:truxnell/nix-config";
|
||
|
};
|
||
|
}
|