<patrikJohanss>
Hi Guys! My NixOS + Home-Manager config (as a NixOS submodule) from last year, does not rebuild anymore. It complains "error: The option `users` defined in `/nix/store/...-source/nixos` does not exist.".
<patrikJohanss>
Any idea what could have broken it?
<patrikJohanss>
It also does not work stand-alone.
<pie_>
you might check if the install / usage manual information has changed
<pie_>
though i imagine you've updated since last year so idk
<patrikJohanss>
I also suspect outdated/corrupted store related to that fetchtarball.
<infinisil>
patrikJohanss: How are you using that file?
<infinisil>
patrikJohanss: Because it's not a valid NixOS module, because programs.home-manager is a home-manager option. And it's not a valid home-manager module, because that import is for a NixOS module
<infinisil>
Well I know you're using this as a home-manager module because of the error
<patrikJohanss>
Now I am just running "home-manager -f home.nix build"
<patrikJohanss>
"--show-trace" doesn't help
<infinisil>
patrikJohanss: Well yeah I just told you it's neither a valid HM nor NixOS module
<infinisil>
patrikJohanss: So if you want to use it as a HM module, you need to remove that `imports` there
<patrikJohanss>
Oh, my bad. I have removed the import and now it works with HM. But the problem still remains when I want to embed it in my configuration.nix with that `import` and wrapped in "home-manager.users.patjoh = { .. }".
<infinisil>
patrikJohanss: Post your configuration.nix