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