Lock flakes and add inputs

This commit is contained in:
2023-04-26 17:36:36 +02:00
parent 543983e9f3
commit 44fcb97ec7
7 changed files with 146 additions and 32 deletions

View File

@@ -6,11 +6,14 @@ if [ "$(id -u)" != 0 ]; then
fi
host=$(hostname)
conf="$(readlink -f .)/${host}/configuration.nix"
if [ ! -e "$conf" ]; then
echo "Missing config $conf"
exit 1
fi
#conf="$(readlink -f .)/${host}/configuration.nix"
#
#if [ ! -e "$conf" ]; then
# echo "Missing config $conf"
# exit 1
#fi
#
#NIXOS_CONFIG="${conf}" nixos-rebuild switch
NIXOS_CONFIG="${conf}" nixos-rebuild switch
nixos-rebuild switch --flake .