From afd189ab8158951e7901118b81edb0f71e25cc57 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 7 Sep 2024 22:08:00 +0800 Subject: [PATCH] nixos/suites/filesystem: make use of state variables --- modules/nixos/_private/suites/filesystem.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/nixos/_private/suites/filesystem.nix b/modules/nixos/_private/suites/filesystem.nix index 3fb89c07..e628b141 100644 --- a/modules/nixos/_private/suites/filesystem.nix +++ b/modules/nixos/_private/suites/filesystem.nix @@ -34,7 +34,9 @@ in }) (lib.mkIf cfg.setups.archive.enable { - fileSystems."/mnt/archives" = { + state.paths.archive = "/mnt/archives"; + + fileSystems."${config.state.paths.archive}" = { device = "/dev/disk/by-partlabel/disk-archive-root"; fsType = "btrfs"; noCheck = true; @@ -57,7 +59,9 @@ in }) (lib.mkIf cfg.setups.external-hdd.enable { - fileSystems."/mnt/external-storage" = { + state.paths.external-hdd = "/mnt/external-storage"; + + fileSystems."${config.state.paths.external-hdd}" = { device = "/dev/disk/by-partlabel/disk-live-installer-root"; fsType = "btrfs"; noCheck = true;