Remove code duplication

This commit is contained in:
Manuel Thalmann 2024-07-06 22:20:56 +02:00
parent 5465077d6b
commit e99bd0a615

View file

@ -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";