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, ... }: { 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 = ''