-
Notifications
You must be signed in to change notification settings - Fork 28
Add example template on how to reuse nixos and home-manager modules. #85
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
Conversation
|
Dunno if this is also related to #77. Using modules to share common settings between different hosts and homes seems natural to me, that's what I'm doing in my systems flake. |
4c26196 to
2cc9114
Compare
|
Hello, @zimbatm I was expecting CI to check the nix-darwin configuration defined on this template. However, checking the output, it seems only the nixos one is being actually checked, even when the flake checks seems to include darwin-configurations. Since the goal of this PR is to exercise more of blueprint's features via CI, I'm wondering if darwin checks are being run on github actions. Am I missing something from the output? UPDATE: I know what's happening now, sorry. I used |
2cc9114 to
46b84e4
Compare
This also serves as CI test for checking that a blueprint correctly integrates home-manager, nixos and nix-darwin configurations. A new feature is also tested: on host nested home-configurations you can now access hostConfig which provides a way to enable things on home-managed environment based on the host system-wide config.
46b84e4 to
dca2cd0
Compare
|
thanks! |
|
is the hostConfig specialArg needed, isnt there osConfig for home-manager? |
|
Good point, let's remove that |
|
the problem is that if you switch to the the hosts user via standalone, osConfig wont exist which will break the home config edit: dont think this matters |
Will send another PR to remove hostConfig. Thanks for pointing out to the existing osConfig param from home-manager. |
`hostConfig` was introduced in numtide#85, however as pointed out by @JumpIn-Git, home-manager already provides the same functionality via the `osConfig` module argument. This PR removes `hostConfig`. Also added a bit of documentation about the sharing-modules example.
`hostConfig` was introduced in #85, however as pointed out by @JumpIn-Git, home-manager already provides the same functionality via the `osConfig` module argument. This PR removes `hostConfig`. Also added a bit of documentation about the sharing-modules example.

This also serves as CI test for checking that blueprint correctly integrates home-manager, nixos and nix-darwin configurations.
A new feature is also tested: on host nested home-configurations you can now access
hostConfigwhich provides a way to enable things on home-managed environment based on the host system-wide config.