mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +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 {
|
(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";
|
device = "/dev/disk/by-partlabel/disk-archive-root";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
noCheck = true;
|
noCheck = true;
|
||||||
@ -57,7 +59,9 @@ in
|
|||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.setups.external-hdd.enable {
|
(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";
|
device = "/dev/disk/by-partlabel/disk-live-installer-root";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
noCheck = true;
|
noCheck = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user