diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-12-12 00:41:58 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-12-12 00:41:58 +0100 |
commit | 9e4c06dd22b98fdc13bbeb641244fe97b7c7635b (patch) | |
tree | 443f26d96988fce9c5883acbca6a82ce58c023f5 | |
parent | Remove /etc access (diff) | |
download | Rory-Open-Architecture-9e4c06dd22b98fdc13bbeb641244fe97b7c7635b.tar.xz |
Add hw config to git temporarily for build
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-rwxr-xr-x | build.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build.sh b/build.sh index 1fdf453..2d01c32 100755 --- a/build.sh +++ b/build.sh @@ -8,10 +8,14 @@ if [ $# -ne 2 ]; then fi if [ "$1" = "/" ]; then nixos-generate-config --show-hardware-config > hardware-configuration.nix + git add -f hardware-configuration.nix nixos-rebuild --flake ".#${2}" build - exit 1 + git rm --cached hardware-configuration.nix + exit else nixos-generate-config --show-hardware-config > hardware-configuration.nix + git add -f hardware-configuration.nix nixos-install --root "${1}" --flake ".#${2}" - exit 1 + git rm --cached hardware-configuration.nix + exit fi |