Our great sponsors
-
nix-starter-configs
Simple and documented config templates to help you get started with NixOS + home-manager + flakes. All the boilerplate you need!
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
My current configuration can be found at https://gitlab.com/maxbaroi/nixos-config
You only have one flake output, your system config, which includes home-manager (but uselessly, since it's in the system config flake output). You want a second flake output for your home-manager config. See this part of nix-starter-configs for an example; there are two outputs, one for nixos-rebuild switch --flake and one for home-manager switch --flake.
I do this through a HM module I put together, programs.emacs.init (documentation).