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

Import self.homeConfigurations.<name> in nixosConfigurations #16

Open
Lehmanator opened this issue Dec 27, 2023 · 0 comments
Open

Import self.homeConfigurations.<name> in nixosConfigurations #16

Lehmanator opened this issue Dec 27, 2023 · 0 comments

Comments

@Lehmanator
Copy link
Owner

Import home-manager configurations by using flake outputs instead of relative paths.

homeConfigurations.<user> = homeManagerConfiguration {
  extraSpecialArgs = { inherit inputs self; user="<user>"; };
  modules = [ ./hm/users/<user> ];
};

nixosConfigurations.<host> = nixosSystem {
  specialArgs = { inherit inputs self; user="<user>";
  modules = [ 
    ({...}: { 
      home-manager.users.<user> = self.homeConfigurations.<user>; 
    }) 
  ];
};

Notes:

  • Is this possible?
  • Possible to override homeConfigurations? Would be nice to define:
    • homeConfigurations."<user>"
    • homeConfigurations."<user>@<host>"
    • other extensions of base homeConfigurations
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

No branches or pull requests

1 participant