From ec3ab72d3a7444f18263c0e40fe55c6d26c08da2 Mon Sep 17 00:00:00 2001 From: Lily Foster Date: Wed, 21 Dec 2022 07:51:27 -0500 Subject: swap: fix typo for checking if swap is on --- types.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; -- cgit v1.2.3