-
Hey I'm wondering if you can use both modules from NixOS and Home-Manager? I have Home-Manager running as standalone aswell as a NixOS module (so I can independently build either). I'm trying to run Stylix but whenever I import the NixOS module for it (while still having the Home-manager one installed) I get the error below; and I haven't a clue of how to fix it.
./home/common/global/default.nix
NixOS stylix file
My full flake: https://github.com/NovaViper/NixConfig |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Since you are using Home Manager within NixOS ( |
Beta Was this translation helpful? Give feedback.
Since you are using Home Manager within NixOS (
home-manager.users.novaviper
), Stylix will automatically import its Home Manager module when you install it to NixOS. Because you already imported the Home Manager module yourself, this causes each of our options to be defined twice, hence the error. You should be able to solve this by settingstylix.homeManagerIntegration.autoImport = false
, which disables the automatic import.