summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-12-26 05:59:33 +0100
committerGitHub <noreply@github.com>2022-12-26 05:59:33 +0100
commitf3bbdaf04e217095551dfd2cfdec95131ee0a839 (patch)
treeb9f009494026ba76c7cf863e6a73b043a13aafcb
parentFix error (diff)
downloadRory-Open-Architecture-f3bbdaf04e217095551dfd2cfdec95131ee0a839.tar.xz
Update build.sh
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index a04888b..a9e040b 100755
--- a/build.sh
+++ b/build.sh
@@ -13,7 +13,7 @@ if [ "$1" = "/" ]; then
     git rm --cached hardware-configuration.nix
     exit
 else
-    nixos-generate-config --show-hardware-config > hardware-configuration.nix
+    nixos-generate-config --show-hardware-config --root "${1}" > hardware-configuration.nix
     git add -f hardware-configuration.nix
     nixos-install --root "${1}" --flake ".#${2}" 
     git rm --cached hardware-configuration.nix