From 9e4c06dd22b98fdc13bbeb641244fe97b7c7635b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 12 Dec 2022 00:41:58 +0100 Subject: Add hw config to git temporarily for build Signed-off-by: TheArcaneBrony --- build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build.sh') 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 -- cgit 1.4.1