fix: installer to fetch hardware configurations from /etc/nixos

This commit is contained in:
nomadics9 2024-11-01 14:52:16 +03:00
parent 84ec0729ed
commit 61228560a8

View file

@ -68,6 +68,8 @@ setup_host_configuration() {
cp -r "./hosts/unkown" "./hosts/$new_hostname" cp -r "./hosts/unkown" "./hosts/$new_hostname"
chown -R $current_user:users "./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" echo -e "$GREEN Host configuration for $new_hostname created successfully! $ENDCOLOR"
} }