1
0
Fork 0

Disable automatic login on Khanda

This commit is contained in:
Aires 2024-06-02 11:30:09 -04:00
parent 4d1539884b
commit d959c546b0
2 changed files with 2 additions and 3 deletions

View file

@ -21,7 +21,6 @@
};
users.aires = {
enable = true;
autologin = true;
services = {
syncthing = {
enable = true;

View file

@ -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}