users/foo-dogsquared: fix conditional for NixOS-enabled parts

This commit is contained in:
Gabriel Arazas 2024-07-29 16:02:13 +08:00
parent 666912d615
commit 126755c8b1
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -124,9 +124,9 @@ in
"$XDG_MUSIC_DIR|Music"
"~/library/music|Library"
]
++ lib.optional (attrs?nixosConfig.suites.filesystem.setups.external-hdd.enable)
++ lib.optional (attrs.nixosConfig.suites.filesystem.setups.external-hdd.enable or false)
"/mnt/external-storage/Music|External storage"
++ lib.optional (attrs?nixosConfig.suites.filesystem.setups.archive.enable)
++ lib.optional (attrs.nixosConfig.suites.filesystem.setups.archive.enable or false)
"/mnt/archives/Music|Archive";
};