add autoUpgrade to semita
This commit is contained in:
parent
be283658f6
commit
3e50d6bb9f
|
@ -92,7 +92,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
persistent = true;
|
persistent = true;
|
||||||
reboot = false;
|
reboot = false;
|
||||||
pushUpdates = true;
|
pushUpdates = false;
|
||||||
configDir = "/etc/nixos";
|
configDir = "/etc/nixos";
|
||||||
onCalendar = "daily";
|
onCalendar = "daily";
|
||||||
user = "sam";
|
user = "sam";
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
configVars,
|
configVars,
|
||||||
|
outputs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# Disko setup
|
# Disko setup
|
||||||
|
@ -69,6 +70,8 @@ in {
|
||||||
|
|
||||||
# # Build nix derivations on remote machine
|
# # Build nix derivations on remote machine
|
||||||
# ../common/optional/distributed-builds/local-machine.nix
|
# ../common/optional/distributed-builds/local-machine.nix
|
||||||
|
|
||||||
|
outputs.nixosModules.nixosAutoUpgrade
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/mnt/main-ssd" = {
|
fileSystems."/mnt/main-ssd" = {
|
||||||
|
@ -98,6 +101,16 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.services.nixosAutoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
persistent = true;
|
||||||
|
reboot = true;
|
||||||
|
pushUpdates = true;
|
||||||
|
configDir = "/etc/nixos";
|
||||||
|
onCalendar = "daily";
|
||||||
|
user = "sam";
|
||||||
|
};
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
GDK_SCALE = "1";
|
GDK_SCALE = "1";
|
||||||
GDK_DPI_SCALE = "1";
|
GDK_DPI_SCALE = "1";
|
||||||
|
|
Loading…
Reference in New Issue