Single configuration file for home-manager and nixos #646
-
Hello,
Is it possible to share a single
accross home-manager and nixos for different machine ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Sadly, I have never had the time to setup Stylix in NixOS and only have it setup in Home Manager. @danth, might be more helpful here. However, I assume this should already be possible in the user level with some refactoring. |
Beta Was this translation helpful? Give feedback.
-
Yes, it's possible to import the same module into two independent NixOS and Home Manager instances, as long as it only mentions options which are common to both. I'm currently doing this in my own configuration. |
Beta Was this translation helpful? Give feedback.
It's just a
stylix.nix
similar to the one you showed, and thenimports = [ ./stylix.nix ];
in both NixOS and Home Manager.I also have a few configurations on Gist which you can take a look at.