Open supermarin opened 8 months ago
I'm not having any issue with using both at the same time. Check out my config here (home-manager) and here (NixOS).
More specifically, I think your issue is that your either trying to import the HM module in NixOS, or vice-versa. Each should only be imported in their respective configuration.
As a part of trying to make nixAccessToken via secret file working, I reverted to create ~/.config/nix/nix.conf via home-manager and moved the logic to home.nix. As soon as you add
agenix.homeManagerModules.default
belowagenix.nixosModules.default
in flake.nixmodules
section ofnixpkgs.lib.nixosSystem
, this error gets thrown at you:It'd be awesome to document how to properly use HM module and user secrets alongside system secrets.