From 1bdc5a5d8476c6d6d151493f9e8e1a5f05f97b32 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 22 Oct 2024 14:25:35 -0400 Subject: [PATCH] Bin: fix broken nixos-operations-script commands --- bin/nixos-operations-script.sh | 4 ++-- flake.lock | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/nixos-operations-script.sh b/bin/nixos-operations-script.sh index 01c4722..77ac4f1 100755 --- a/bin/nixos-operations-script.sh +++ b/bin/nixos-operations-script.sh @@ -78,11 +78,11 @@ fi cd $flakeDir echo "Pulling the latest version of the repository..." -/run/wrappers/bin/sudo -u $user git pull +/run/wrappers/bin/sudo -u $user /run/current-system/sw/bin/git pull if [ $update = true ]; then echo "Updating flake.lock..." - /run/wrappers/bin/sudo -u $user nix flake update --commit-lock-file && /run/wrappers/bin/sudo -u $user git push + /run/wrappers/bin/sudo -u $user /run/current-system/sw/bin/nix flake update --commit-lock-file && /run/wrappers/bin/sudo -u $user git push else echo "Skipping 'nix flake update'..." fi diff --git a/flake.lock b/flake.lock index 580b961..1e2cde3 100644 --- a/flake.lock +++ b/flake.lock @@ -315,11 +315,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1729256560, - "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=", + "lastModified": 1729413321, + "narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0", + "rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26", "type": "github" }, "original": { @@ -331,11 +331,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1729307008, - "narHash": "sha256-QUvb6epgKi9pCu9CttRQW4y5NqJ+snKr1FZpG/x3Wtc=", + "lastModified": 1729449015, + "narHash": "sha256-Gf04dXB0n4q0A9G5nTGH3zuMGr6jtJppqdeljxua1fo=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a9b86fc2290b69375c5542b622088eb6eca2a7c3", + "rev": "89172919243df199fe237ba0f776c3e3e3d72367", "type": "github" }, "original": {