system.nix
1 { inputs, config, pkgs, lib, self, ... }: let 2 3 in { 4 system = { 5 stateVersion = inputs.system.stateVersion-unstable; 6 autoUpgrade = { 7 enable = false; 8 flake = inputs.self.outPath; 9 operation = "switch"; 10 flags = [ 11 "--update-input" 12 "nixpkgs" 13 "--commit-lock-file" 14 "-L" # print build logs 15 ]; 16 dates = "02:00"; 17 randomizedDelaySec = "45min"; 18 rebootWindow = { 19 lower = "02:00"; 20 upper = "05:00"; 21 }; 22 }; 23 activationScripts = { 24 }; 25 }; 26 }