Remove code duplication

This commit is contained in:
Manuel Thalmann 2024-07-06 22:20:56 +02:00
parent d56088ebea
commit 28cab3c0bc

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