Skip to content

Commit

Permalink
swap: fix typo for checking if swap is on
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyinstarlight committed Dec 21, 2022
1 parent 935feb7 commit 2ba28dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
Expand Down

0 comments on commit 2ba28dd

Please sign in to comment.