Make variable more understandable

This commit is contained in:
Manuel Thalmann 2024-07-06 22:25:41 +02:00
parent f21433b722
commit b8856918c8

View file

@ -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 = ''