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

home-manager: handle missing per-user profiles directory #3742

Merged
merged 2 commits into from
Mar 8, 2023

Commits on Mar 7, 2023

  1. Configuration menu
    Copy the full SHA
    0f3dfc1 View commit details
    Browse the repository at this point in the history
  2. home-manager: handle missing per-user profiles directory

    Specifically, if the global per-user profiles path do not exist and we
    cannot create it during the activation, then place our profile in the
    Home Manager data directory. We prefer to use the global location,
    though, since it makes it visible to `nix-collect-garbage`.
    
    This is intended to improve compatibility with Nix version 2.14 and
    later, which no longer creates the per-user directories.
    
    Also, use the Home Manager data directory to manage the gcroot for the
    current generation. It does not have to sit in the global per-user
    gcroots directory since it should never be eligible for GC.
    rycee committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    f698164 View commit details
    Browse the repository at this point in the history