summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLily Foster <lily@lily.flowers>2022-12-21 07:51:27 -0500
committerJörg Thalheim <joerg@thalheim.io>2022-12-23 17:39:17 +0100
commitec3ab72d3a7444f18263c0e40fe55c6d26c08da2 (patch)
tree5eea6f4e38c18c6627cc3068ee2a2aeceeeccdc4
parent3ab2a5d98df92f8b5eceee71dd1beb4678da409b (diff)
swap: fix typo for checking if swap is on
-rw-r--r--types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.nix b/types.nix
index 41a7c13..a65f2c1 100644
--- a/types.nix
+++ b/types.nix
@@ -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
'';