From d959c546b08751f9598b1b0291c03af61cd0e5bd Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 2 Jun 2024 11:30:09 -0400 Subject: [PATCH] Disable automatic login on Khanda --- hosts/Khanda/default.nix | 1 - modules/services/autoupgrade.nix | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hosts/Khanda/default.nix b/hosts/Khanda/default.nix index f4e84cd..90f3b49 100644 --- a/hosts/Khanda/default.nix +++ b/hosts/Khanda/default.nix @@ -21,7 +21,6 @@ }; users.aires = { enable = true; - autologin = true; services = { syncthing = { enable = true; diff --git a/modules/services/autoupgrade.nix b/modules/services/autoupgrade.nix index 8dab295..344539f 100644 --- a/modules/services/autoupgrade.nix +++ b/modules/services/autoupgrade.nix @@ -64,12 +64,13 @@ in User = "root"; }; path = pathPkgs; + # Git diffing strategy courtesy of https://stackoverflow.com/a/40255467 script = '' cd ${cfg.configDir} # Check if there are changes from Git. echo "Pulling latest version..." sudo -u ${cfg.user} git fetch - sudo -u ${cfg.user} git diff --quiet --exit-code main origin/main || true + sudo -u ${cfg.user} git diff --quiet --exit-code || true # If we have changes (git diff returns 1), pull changes and run the update if [ $? -eq 1 ]; then echo "Updates found, running nixos-rebuild..." @@ -99,7 +100,6 @@ in User = cfg.user; }; path = pathPkgs; - # Git diffing strategy courtesy of https://stackoverflow.com/a/40255467 script = '' set -eu cd ${cfg.configDir}