From 9342ab263a90ce90ec5d6ba60dc21aeeac0115b7 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 30 May 2024 12:19:07 -0400 Subject: [PATCH] Fix auto-update scripts --- hosts/Haven/default.nix | 9 +++++++++ modules/base/system.nix | 18 ++++++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/hosts/Haven/default.nix b/hosts/Haven/default.nix index 750a0cc..e9864ac 100644 --- a/hosts/Haven/default.nix +++ b/hosts/Haven/default.nix @@ -120,6 +120,15 @@ in Type = "oneshot"; User = config.users.users.aires.name; }; + path = with pkgs; [ + coreutils + gnutar + xz.bin + gzip + git + config.nix.package.out + openssh + ]; script = '' set -eu cd ${config.users.users.aires.home}/Development/nix-configuration diff --git a/modules/base/system.nix b/modules/base/system.nix index e9df776..7ebc514 100644 --- a/modules/base/system.nix +++ b/modules/base/system.nix @@ -32,11 +32,21 @@ Type = "oneshot"; User = "root"; }; + path = with pkgs; [ + coreutils + gnutar + xz.bin + gzip + git + config.nix.package.out + nh + openssh + ]; script = '' - set -eu - cd ${config.users.users.aires.home}/Development/nix-configuration - sudo -u aires git pull --recurse-submodules - nh os switch + set -eu + cd ${config.users.users.aires.home}/Development/nix-configuration + sudo -u aires git pull --recurse-submodules + nh os switch ''; }; systemd.timers."nixos-update-timer" = {