swap: fix typo for checking if swap is on

This commit is contained in:
Lily Foster authored and Jörg Thalheim committed 2022-12-23 17:39:17 +01:00
1 parent 3ab2a5d98d
commit ec3ab72d3a
1 file changed
+1 -1
+1 -1
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
'';