fix: installer to fetch hardware configurations from /etc/nixos
This commit is contained in:
parent
84ec0729ed
commit
61228560a8
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue