Keep local host/hardware files, default hostname nanuqsaurus
This commit is contained in:
parent
91a4b180a4
commit
36fb3bd193
4 changed files with 8 additions and 4 deletions
|
|
@ -44,9 +44,9 @@ fi
|
|||
|
||||
echo "[6/7] Generating hardware config"
|
||||
mkdir -p /mnt/etc/nixos/hosts
|
||||
nixos-generate-config --root /mnt --show-hardware-config > "/mnt/etc/nixos/hosts/${HOSTNAME}-hardware.nix"
|
||||
nixos-generate-config --root /mnt --show-hardware-config > "/mnt/etc/nixos/hosts/local-${HOSTNAME}-hardware.nix"
|
||||
|
||||
host_file="/mnt/etc/nixos/hosts/${HOSTNAME}.nix"
|
||||
host_file="/mnt/etc/nixos/hosts/local-${HOSTNAME}.nix"
|
||||
if [ ! -e "${host_file}" ]; then
|
||||
cat > "${host_file}" <<EOF
|
||||
{ inputs, ... }:
|
||||
|
|
@ -57,7 +57,7 @@ if [ ! -e "${host_file}" ]; then
|
|||
../modules/system/base.nix
|
||||
../modules/desktop/gnome-minimal.nix
|
||||
../modules/users/admin.nix
|
||||
./${HOSTNAME}-hardware.nix
|
||||
./local-${HOSTNAME}-hardware.nix
|
||||
];
|
||||
|
||||
networking.hostName = "${HOSTNAME}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue