modularization

This commit is contained in:
zuma 2025-11-04 23:02:58 +01:00
parent fdcd4dbce9
commit f1fe0d8549
7 changed files with 39 additions and 62 deletions

11
deploy_nix.sh Executable file
View 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