From 36f1d43a099f6d57e7382df5672faf93ebeec6c8 Mon Sep 17 00:00:00 2001 From: NyxErinys Date: Mon, 22 Jun 2026 00:39:18 -0500 Subject: [PATCH] move packages outside services --- hosts/servers/poseidon/shares.nix | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/hosts/servers/poseidon/shares.nix b/hosts/servers/poseidon/shares.nix index 5cb54d7..4416c41 100644 --- a/hosts/servers/poseidon/shares.nix +++ b/hosts/servers/poseidon/shares.nix @@ -113,23 +113,23 @@ in { }) targets; }; }; - environment.systemPackages = with pkgs; [ - writeShellScriptBin "zvolcreate" '' - SIZE=$1 - ZVOL=$2 - - if [[ $EUID -eq 0 ]]; then - - echo "Creating $SIZE Zvol $ZVOL" - - zfs create -s -V $SIZE Velaris/Containers/$ZVOL - sleep 1 - mkfs.xfs -b size=16384 -s size=4096 /dev/zvol/Velaris/Containers/$ZVOL - else - echo "This script needs to be run as root" - exit 1 - fi - '' - ]; }; + environment.systemPackages = with pkgs; [ + writeShellScriptBin "zvolcreate" '' + SIZE=$1 + ZVOL=$2 + + if [[ $EUID -eq 0 ]]; then + + echo "Creating $SIZE Zvol $ZVOL" + + zfs create -s -V $SIZE Velaris/Containers/$ZVOL + sleep 1 + mkfs.xfs -b size=16384 -s size=4096 /dev/zvol/Velaris/Containers/$ZVOL + else + echo "This script needs to be run as root" + exit 1 + fi + '' + ]; } \ No newline at end of file