Update structure

This commit is contained in:
Maciej Jur 2023-07-09 15:02:41 +02:00
parent 9962dff578
commit d091471c01
No known key found for this signature in database
GPG key ID: ADA3BF323198C639
2 changed files with 14 additions and 1 deletions

View file

@ -7,7 +7,7 @@
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
/etc/nixos/hardware-configuration.nix
];
# Use the GRUB 2 boot loader.

13
symlink.sh Normal file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
HOST=`hostname`
if [[ ! -z "$1" ]]; then
HOST=$1
fi
if [[ ! -e "hosts/$HOST/configuration.nix" ]]; then
echo "missing config file for $HOST" >&2
exit 1
fi
ln -f "hosts/$HOST/configuration.nix" .