mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
nixos/suites/filesystem: make use of state variables
This commit is contained in:
parent
dabebb5f1d
commit
afd189ab81
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user