From 3e50d6bb9f0fcc3f628b0b0ba96f2c88b24ca49b Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 16 Jan 2025 18:51:56 +0000 Subject: [PATCH] add autoUpgrade to semita --- hosts/citadel/default.nix | 2 +- hosts/semita/default.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/hosts/citadel/default.nix b/hosts/citadel/default.nix index 302c580..ea8787b 100644 --- a/hosts/citadel/default.nix +++ b/hosts/citadel/default.nix @@ -92,7 +92,7 @@ in { enable = true; persistent = true; reboot = false; - pushUpdates = true; + pushUpdates = false; configDir = "/etc/nixos"; onCalendar = "daily"; user = "sam"; diff --git a/hosts/semita/default.nix b/hosts/semita/default.nix index 78ddc29..61cb5b4 100644 --- a/hosts/semita/default.nix +++ b/hosts/semita/default.nix @@ -3,6 +3,7 @@ lib, pkgs, configVars, + outputs, ... }: let # Disko setup @@ -69,6 +70,8 @@ in { # # Build nix derivations on remote machine # ../common/optional/distributed-builds/local-machine.nix + + outputs.nixosModules.nixosAutoUpgrade ]; 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 = { GDK_SCALE = "1"; GDK_DPI_SCALE = "1";