From b8856918c8bc5070aa5d6001cc31e9c403e2f64e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 6 Jul 2024 22:25:41 +0200 Subject: [PATCH] Make variable more understandable --- lib/modules/partition.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix index 3530b3f4..7b107f23 100644 --- a/lib/modules/partition.nix +++ b/lib/modules/partition.nix @@ -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 = ''