Disable automatic login on Khanda
This commit is contained in:
parent
4d1539884b
commit
d959c546b0
|
@ -21,7 +21,6 @@
|
||||||
};
|
};
|
||||||
users.aires = {
|
users.aires = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autologin = true;
|
|
||||||
services = {
|
services = {
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -64,12 +64,13 @@ in
|
||||||
User = "root";
|
User = "root";
|
||||||
};
|
};
|
||||||
path = pathPkgs;
|
path = pathPkgs;
|
||||||
|
# Git diffing strategy courtesy of https://stackoverflow.com/a/40255467
|
||||||
script = ''
|
script = ''
|
||||||
cd ${cfg.configDir}
|
cd ${cfg.configDir}
|
||||||
# Check if there are changes from Git.
|
# Check if there are changes from Git.
|
||||||
echo "Pulling latest version..."
|
echo "Pulling latest version..."
|
||||||
sudo -u ${cfg.user} git fetch
|
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 we have changes (git diff returns 1), pull changes and run the update
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
echo "Updates found, running nixos-rebuild..."
|
echo "Updates found, running nixos-rebuild..."
|
||||||
|
@ -99,7 +100,6 @@ in
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
};
|
};
|
||||||
path = pathPkgs;
|
path = pathPkgs;
|
||||||
# Git diffing strategy courtesy of https://stackoverflow.com/a/40255467
|
|
||||||
script = ''
|
script = ''
|
||||||
set -eu
|
set -eu
|
||||||
cd ${cfg.configDir}
|
cd ${cfg.configDir}
|
||||||
|
|
Loading…
Reference in a new issue