Remove code duplication
This commit is contained in:
parent
d56088ebea
commit
28cab3c0bc
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue