You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
415 B
17 lines
415 B
{ 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 = "git://m7.rs/nix-config?ref=release-${hostName}";
|
|
};
|
|
}
|
|
|