swap: fix typo for checking if swap is on

This commit is contained in:
Lily Foster 2022-12-21 07:51:27 -05:00 committed by Jörg Thalheim
parent 3ab2a5d98d
commit ec3ab72d3a

View file

@ -655,7 +655,7 @@ rec {
type = types.functionTo diskoLib.jsonType;
default = dev: {
fs.${dev} = ''
if ! $(swapon --show | grep -q '^${dev} '); then
if ! swapon --show | grep -q '^${dev} '; then
swapon ${dev}
fi
'';