move packages outside services
This commit is contained in:
parent
4fa92718b3
commit
36f1d43a09
1 changed files with 18 additions and 18 deletions
|
|
@ -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
|
||||
''
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue