nix-cluster/deploy_nix.sh
2025-11-04 23:02:58 +01:00

11 lines
230 B
Bash
Executable file

#! /usr/bin/env bash
if [ -z "$1" ]
then
echo "Erreur : Précisez le noeud à installer"
exit 1
fi
cp ./configuration.nix /etc/nixos/configuration.nix
cp ./cluster/nodes/$1.nix /etc/nixos/node.nix
nixos-rebuild switch