Closed matdibu closed 1 month ago
Can you show what your config looks like? The error message makes me think you might have a [[]]
perhaps.
you're right!
for reference, this was the broken config snippet
home.persistence."${osConfig.modules.impermanence.mountpoint}/home/mateidibu" = {
directories = [
(lib.optional osConfig.programs.steam.enable ".local/share/Steam")
];
};
(everything under config.modules.*
is one of my own modules)
the mistake was that I was using lib.optional
, which returns a list
I fixed it now by using
directories = lib.optional osConfig.programs.steam.enable ".local/share/Steam";
or alternatively
directories = lib.optionals osConfig.programs.steam.enable [ ".local/share/Steam" ];
do you think it would be worth it to add an example of this kind of usage to the README ?
Passing an empty list to
home.persistence.<path>.directories
leads to this error: