From 400a9f831adb492e5b757e4675bf9a6297b53b50 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 10 Nov 2024 15:03:09 -0500 Subject: [PATCH] fix(hypr): allow dev script to work on normal repos --- nixosModules/desktop/environment/home/dev.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nixosModules/desktop/environment/home/dev.nix b/nixosModules/desktop/environment/home/dev.nix index 107cddd0..be8191e2 100644 --- a/nixosModules/desktop/environment/home/dev.nix +++ b/nixosModules/desktop/environment/home/dev.nix @@ -8,12 +8,11 @@ home.packages = [ (pkgs.writeShellScriptBin "testChanges" '' rm -r /home/matt/git/$1/$2/{.cache,build} + cd /home/matt/.nix || return nix flake update "$1" nh os switch - ( - cd "/home/matt/git/$1/$2" - nix develop /home/matt/git/$1 -c cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - ) + cd "/home/matt/git/$1/$2" || return + nix develop /home/matt/git/$1 -c cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON '') ]; };