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