1
0
Fork 0

Update update scripts

This commit is contained in:
Malte Brandy 2020-10-01 01:47:05 +02:00
parent 39f0f6963a
commit 0497f76685
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,7 @@ in {
maintenance = pkgs.writeShellScriptBin "maintenance" ''
set -e
git -C ~/git/config pull --ff-only
git -C ~/git/config submodule update
update-modes
sudo -A update-system
'';

View file

@ -24,6 +24,7 @@ in {
};
script = ''
/run/wrappers/bin/sudo -u ${user} git -C /etc/nixos pull --ff-only
/run/wrappers/bin/sudo -u ${user} git -C /etc/nixos submodule update
/var/cache/gc-links/result-system-hera/bin/switch-to-configuration switch
/run/wrappers/bin/sudo -u ${user} /var/cache/gc-links/result-home-manager-hera/default/activate
'';

View file

@ -60,6 +60,10 @@ in {
git "-C" repoDir "config" "user.email" "maralorn@maralorn.de"
git "-C" repoDir "config" "user.name" "maralorn (nix-auto-updater)"
git "-C" repoDir "commit" "-am" "Update dependencies with niv"
concurrently_
(mapConcurrently_ (\x -> test_system_config repoDir x "--builders" "@/etc/nix/machines" "--max-jobs" "0") ${self.haskellList systems})
(mapConcurrently_ (\x -> test_home_config repoDir x "--builders" "@/etc/nix/machines" "--max-jobs" "0") ${self.haskellList homes})
git "-C" repoDir "submodule" "update" "--init"
concurrently_
(mapConcurrently_ (test_system_config repoDir) ${self.haskellList systems})
(mapConcurrently_ (test_home_config repoDir) ${self.haskellList homes})