Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Impermanence configuration leads to home-manager crash on boot #5421

Open
2 tasks done
GameDungeon opened this issue May 20, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@GameDungeon
Copy link

GameDungeon commented May 20, 2024

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Defining persist mounts inside the home directory in both nixos and home-manager with impermanence leads home-manager to crash on boot with Could not find suitable profile directory. The recommended fix for this does not help, and you must instead consolidate the home-manager and nixos mounts for the home dir.

While this is highly related to the impermanence module, it is a strange home-manager crash so I reported it here.

home.persistence."/nix/persist/home/myuser" = {
  directories = [
    "Documents"
    "Downloads"
    "Pictures"
    "Videos"
    "Projects"
  ];
};
environment.persistence."/nix/persist" = {
  hideMounts = true;

  users.myuser.directories = [
    "Games"
    ".steam"
    ".local/share/Steam"
  ];
};

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.6.21-hardened1, NixOS, 24.05 (Uakari), 24.05.20240517.4a6b83b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/0aavdx9m5ms1cj5pb1dx0brbrbigy8ij-source`
@GameDungeon GameDungeon added bug triage Issues or feature request that have not been triaged yet labels May 20, 2024
@GameDungeon GameDungeon changed the title bug: bug: Duplicated Impermanence Config leads to Crash on Boot May 20, 2024
@GameDungeon GameDungeon changed the title bug: Duplicated Impermanence Config leads to Crash on Boot bug: Impermanence configuration leads to home-manager crash on boot May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants