mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
swap: fix typo for checking if swap is on
This commit is contained in:
1 parent
3ab2a5d98d
commit
ec3ab72d3a
1 file changed
+1
-1
@@ -655,7 +655,7 @@ rec {
|
|||||||
type = types.functionTo diskoLib.jsonType;
|
type = types.functionTo diskoLib.jsonType;
|
||||||
default = dev: {
|
default = dev: {
|
||||||
fs.${dev} = ''
|
fs.${dev} = ''
|
||||||
if ! $(swapon --show | grep -q '^${dev} '); then
|
if ! swapon --show | grep -q '^${dev} '; then
|
||||||
swapon ${dev}
|
swapon ${dev}
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in new issue
Block a user