-
Notifications
You must be signed in to change notification settings - Fork 44
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
Switch home configuration without rebuilding the system #138
Comments
It seems not possible at least with
|
I've had a quick look at your Regarding the issue itself, I know For example in the nixosConfiguration somewhere environment.systemPackages = [
pkgs.writeShellScriptBin "hm-switch" ''
home-manager switch --flake <path_to_your_flake> \
--option ${namespace}.osConfig.services.myService.enable ${config.${namespace}.services.myService.enable}
# and so on
'';
]; |
Apologies for being so stupid. I have carefully read the thread but I do not understand the proposed usage here.... :( First off: I have happily setup snowfall lib to properly manage multiple nixos installations (on desktops, laptops, cloud instances, etc) and it properly sets up my system AND my user (through homemanager), so that's fine. My latest usecase is to now use the same flake on a brand new work laptop, that unfortunately has to have Ubuntu installed. How can I use snowflake lib to only manage Home manager and install/configure that laptop with Home Manager alone? What would be the incantation to deploy changes to my Ubuntu machine? Is there a sample repo where something like this is setup to take inspiration from? Many thanks!!! |
This comment has been minimized.
This comment has been minimized.
Thanks for your kind words and helpful steer in the right direction (actual direction, actually :) ). Your suggestion worked fine and I can now configure my system with home-manager alone! Thanks again! |
I was wondering, what is the dynamic of home-manager with snowfall v3? I've read that in #7 standalone home manager is possible, my question is, how do I achieve this, and do I need to change anything in the modules themselves?
I currently have a system that enables option X. Then in my home manager modules depending on the
osConfig.x
i do different things, will this still work as indended? Since my system issystemA
, and my home config isuser@systemA
I guess it should resolve correctly?I have no issues with the current setup, it works wonderfully, I just dislike having to rebuild my entire system to get CSS change into my waybar, seems redundant. Are there any drawbacks to switching to standalone HM with snowfall?
The text was updated successfully, but these errors were encountered: