From 61228560a87ac32e25c90bfa555dffe230af930e Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Fri, 1 Nov 2024 14:52:16 +0300 Subject: [PATCH] fix: installer to fetch hardware configurations from /etc/nixos --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index b017d6f..9a754e8 100755 --- a/install.sh +++ b/install.sh @@ -68,6 +68,8 @@ setup_host_configuration() { cp -r "./hosts/unkown" "./hosts/$new_hostname" chown -R $current_user:users "./hosts/$new_hostname" + rm "./hosts/$new_hostname/hardware-configuration.nix" + cp "/etc/nixos/hardware-configuration.nix" "./hosts/${new_hostname}/" echo -e "$GREEN Host configuration for $new_hostname created successfully! $ENDCOLOR" }