Update structure
This commit is contained in:
parent
9962dff578
commit
d091471c01
|
@ -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
13
symlink.sh
Normal 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" .
|
Loading…
Reference in a new issue