Make variable more understandable
This commit is contained in:
parent
f21433b722
commit
b8856918c8
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) types mkOption;
|
inherit (lib) types mkOption;
|
||||||
disksVarName = "myDisk";
|
diskListVarName = "myDisk";
|
||||||
isSwap = partition: builtins.elem partition.type [fs.swap 19];
|
isSwap = partition: builtins.elem partition.type [fs.swap 19];
|
||||||
|
|
||||||
fs = {
|
fs = {
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
diskVarName = "${disksVarName}[${config.id}]";
|
diskVarName = "${diskListVarName}[${config.id}]";
|
||||||
diskVar = ''''${${diskVarName}}'';
|
diskVar = ''''${${diskVarName}}'';
|
||||||
|
|
||||||
diskSelector = ''
|
diskSelector = ''
|
||||||
|
|
Loading…
Reference in a new issue