summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-12-23 16:42:23 +0000
committerGitHub <noreply@github.com>2022-12-23 16:42:23 +0000
commit8ae729e9be221bfc9fe4ade4195f42f8d4f2e757 (patch)
tree5eea6f4e38c18c6627cc3068ee2a2aeceeeccdc4
parent3ab2a5d98df92f8b5eceee71dd1beb4678da409b (diff)
parentec3ab72d3a7444f18263c0e40fe55c6d26c08da2 (diff)
Merge pull request #83 from lilyinstarlight/fix/swapon-typo
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
'';