modularization
This commit is contained in:
parent
fdcd4dbce9
commit
f1fe0d8549
7 changed files with 39 additions and 62 deletions
11
deploy_nix.sh
Executable file
11
deploy_nix.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#! /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
|
||||
Loading…
Add table
Add a link
Reference in a new issue