summary refs log tree commit diff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 901d857..da5872f 100755
--- a/build.sh
+++ b/build.sh
@@ -15,8 +15,12 @@ if [ "$1" = "/" ]; then
 else
     nixos-generate-config --show-hardware-config --root "${1}" > hardware-configuration.nix
     git add -f hardware-configuration.nix
+    if [ -f "flake.lock" ]; then
+        git add -f flake.lock
+    fi
     nixos-install --root "${1}" --flake ".#${2}" 
     git rm --cached hardware-configuration.nix
+    git rm --cached flake.lock
     cp . "${1}/Spacebar-Open-Architecture" -r
     exit
 fi