11 lines
230 B
Bash
Executable file
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
|