1
0
Fork 0
This commit is contained in:
Aires 2024-05-30 18:02:54 -04:00
parent 3f55ebdbe3
commit 28b14a9ce3
2 changed files with 3 additions and 3 deletions

View file

@ -252,7 +252,7 @@
"locked": { "locked": {
"lastModified": 1717092160, "lastModified": 1717092160,
"narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=", "narHash": "sha256-dype0zRMyP94Uo8YC1vWQ6lkvXLYMep6+Xo7AW4K9cs=",
"ref": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9", "ref": "refs/heads/main",
"rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9", "rev": "42ddf14d36d9fab1eb070f51fdf1991d1a21dde9",
"revCount": 42, "revCount": 42,
"type": "git", "type": "git",

View file

@ -10,7 +10,7 @@ let
cfg = config.host.services.autoUpgrade; cfg = config.host.services.autoUpgrade;
# List of packages to include in each service's $PATH # List of packages to include in each service's $PATH
pathPks = with pkgs; [ pathPkgs = with pkgs; [
# Courtesy of https://discourse.nixos.org/t/how-to-use-other-packages-binary-in-systemd-service-configuration/14363 # Courtesy of https://discourse.nixos.org/t/how-to-use-other-packages-binary-in-systemd-service-configuration/14363
coreutils coreutils
gnutar gnutar
@ -47,7 +47,7 @@ in
}; };
path = pathPkgs; path = pathPkgs;
script = '' script = ''
cd ${config.secret.nixConfigFolder} cd ${config.secrets.nixConfigFolder}
# Check if there are changes from Git. # Check if there are changes from Git.
# Since we're running this as root, we need to su into the user who owns the config folder. # Since we're running this as root, we need to su into the user who owns the config folder.
sudo -u aires git fetch sudo -u aires git fetch