1
0
Fork 0

Suppress git warnings

This commit is contained in:
Malte Brandy 2020-09-17 02:17:05 +02:00
parent e6f14133f6
commit 1169fbd15a
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ in {
home.packages = builtins.attrValues rec {
maintenance = pkgs.writeShellScriptBin "maintenance" ''
set -e
git -C ~/git/config pull
git -C ~/git/config pull --ff-only
update-modes
sudo -A update-system
'';

View file

@ -23,7 +23,7 @@ in {
StartLimitBurst=3;
};
script = ''
/run/wrappers/bin/sudo -u ${user} git -C /etc/nixos pull
/run/wrappers/bin/sudo -u ${user} git -C /etc/nixos pull --ff-only
/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
'';