Fix auto-update scripts (again, hopefully)
This commit is contained in:
parent
3a044e901a
commit
ec3699ffc4
|
@ -41,6 +41,7 @@
|
|||
config.nix.package.out
|
||||
nh
|
||||
openssh
|
||||
sudo
|
||||
];
|
||||
script = ''
|
||||
cd ${config.users.users.aires.home}/Development/nix-configuration
|
||||
|
@ -49,7 +50,7 @@
|
|||
sudo -u aires git diff --exit-code main origin/main
|
||||
if [ $? -eq 1 ]; then
|
||||
sudo -u aires git pull --recurse-submodules
|
||||
nh os search
|
||||
nh os switch
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue