Skip to content

allowOther removal leads to broken mounts #293

@LennyPenny

Description

@LennyPenny

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions