mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 10:51:53 -05:00
Aly Raffauf
7f89988938
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
24 lines
446 B
Nix
24 lines
446 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
environment.variables.FLAKE = lib.mkDefault "github:alyraffauf/nixcfg";
|
|
|
|
system.autoUpgrade = {
|
|
enable = true;
|
|
allowReboot = true;
|
|
dates = "02:00";
|
|
flags = ["--accept-flake-config"];
|
|
flake = config.environment.variables.FLAKE;
|
|
operation = "switch";
|
|
persistent = true;
|
|
randomizedDelaySec = "60min";
|
|
|
|
rebootWindow = {
|
|
lower = "02:00";
|
|
upper = "06:00";
|
|
};
|
|
};
|
|
}
|