Heyo,
I use both the nixos module and the home manager module since quite a while.
I recently updated and got deprecation errors about the home manager module being part of the nixos module and, more importantly, the allowOther option being removed.
My old hm setup is as follows:
{ ... }:
{
home.persistence."/persist/backup/home" = {
directories = [
"Downloads"
"Music"
"Pictures"
"Documents"
"Videos"
...
];
files = [ ];
allowOther = true;
};
home.persistence."/persist/main/home" = {
directories = [
".local/share/direnv"
".cache/nix-index"
];
files = [ ];
allowOther = true;
};
}
The deprecation error makes it sound like I can just remove allowOther now, which I went ahead and did.
To my surprise this broke my setup. All the directories like /home/lenny/Downloads etc. now appear empty.
I went ahead an checked the systemd mount services and found that somehow some paths got duplicated and my username magically added.
Instead of /persist/backup/home/Downloads, it now created new empty directories at /persist/backup/home/home/lenny/Downloads and mounts those instead.
I'm a bit lost as I have no idea where that extra path stuff in coming from, do I need to to make any other changes to my config?
Heyo,
I use both the nixos module and the home manager module since quite a while.
I recently updated and got deprecation errors about the home manager module being part of the nixos module and, more importantly, the
allowOtheroption being removed.My old hm setup is as follows:
The deprecation error makes it sound like I can just remove
allowOthernow, which I went ahead and did.To my surprise this broke my setup. All the directories like
/home/lenny/Downloadsetc. now appear empty.I went ahead an checked the systemd mount services and found that somehow some paths got duplicated and my username magically added.
Instead of
/persist/backup/home/Downloads, it now created new empty directories at/persist/backup/home/home/lenny/Downloadsand mounts those instead.I'm a bit lost as I have no idea where that extra path stuff in coming from, do I need to to make any other changes to my config?