Remove code duplication
This commit is contained in:
parent
5465077d6b
commit
e99bd0a615
|
@ -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