From 28cab3c0bc4644805c7f556f811f44d2a4b7a0a5 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 6 Jul 2024 22:20:56 +0200 Subject: [PATCH] Remove code duplication --- lib/modules/partition.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix index 3ddc33f4..ef65a62c 100644 --- a/lib/modules/partition.nix +++ b/lib/modules/partition.nix @@ -2,7 +2,7 @@ let inherit (lib) types mkOption; diskVarName = "myDisk"; - isSwap = partition: builtins.elem partition.type ["swap" 19]; + isSwap = partition: builtins.elem partition.type [fs.swap 19]; fs = { ext4 = "ext4";