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

Added home manager module to flake.nix #43

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

RiscadoA
Copy link
Contributor

@RiscadoA RiscadoA commented Aug 9, 2021

home-manager.nix wasn't being added to nixosModules on flake.nix.
Added it as impermanence-home.

@lovesegfault
Copy link
Collaborator

Couple thoughts:

  • Nix style is camelCase, so it should be impermanenceHome
  • I wonder if we just want to have it be in a sub-attr, so home-manager.impermanence.

cc. @talyz

@talyz
Copy link
Collaborator

talyz commented Aug 31, 2021

I can't really comment on whether this works, since I don't use flakes, but it looks fine to me. home-manager.impermanence looks good.

@Misterio77
Copy link
Contributor

Been using this one for a while, working nicely so far

@RiscadoA
Copy link
Contributor Author

RiscadoA commented Sep 1, 2021

Couple thoughts:

* Nix style is camelCase, so it should be `impermanenceHome`

* I wonder if we just want to have it be in a sub-attr, so `home-manager.impermanence`.

cc. @talyz

I've changed it to match your suggestions.

@bnjmnt4n
Copy link

bnjmnt4n commented Sep 1, 2021

I believe the home-manager community was working on standardizing this over at nix-community/home-manager#1783, although it seems to have stalled.

@a12l
Copy link

a12l commented Dec 8, 2021

How do I add this to my NixOS configuration flake? I've defined inputs.impermanence.url = "github:a12l/impermanence/master"; (my fork of nix-community/impermanence with this patch applied), and added

home-manager.nixosModules.home-manager
{
  home-manager.users.a12l = {
    imports = [ impermanence ];
    home.persistence."/persistent/home/a12l" = { };
  }
}

to my NixOS configuration flake. But when I try to build it I get

$ nixos-rebuild build --flake '.#mobile-p-ep1'
building the system configuration...
error: The option `home-manager.users.a12l.home.persistence' does not exist. Definition values:
       - In `/nix/store/480mp97jl7s8qy7m4plnq2v98qfzapma-source/flake.nix':
           {
             "/persistent/home/a12l" = { };
           }
(use '--show-trace' to show detailed location information)

@lovesegfault lovesegfault merged commit df5038f into nix-community:master Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants