Remove code duplication
This commit is contained in:
parent
d56088ebea
commit
28cab3c0bc
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
inherit (lib) types mkOption;
|
inherit (lib) types mkOption;
|
||||||
diskVarName = "myDisk";
|
diskVarName = "myDisk";
|
||||||
isSwap = partition: builtins.elem partition.type ["swap" 19];
|
isSwap = partition: builtins.elem partition.type [fs.swap 19];
|
||||||
|
|
||||||
fs = {
|
fs = {
|
||||||
ext4 = "ext4";
|
ext4 = "ext4";
|
||||||
|
|
Loading…
Reference in a new issue