rycee changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/rycee/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
pie_ has quit [Ping timeout: 252 seconds]
pie_ has joined #home-manager
romanofski_ has quit [Ping timeout: 248 seconds]
romanofski has joined #home-manager
pie_ has quit [Remote host closed the connection]
pie_ has joined #home-manager
pie_ has quit [Ping timeout: 258 seconds]
pie_ has joined #home-manager
pie_ has quit [Remote host closed the connection]
pie_ has joined #home-manager
pie___ has joined #home-manager
pie_ has quit [Ping timeout: 248 seconds]
pie___ has quit [Remote host closed the connection]
pie___ has joined #home-manager
pie_ has joined #home-manager
pie___ has quit [Ping timeout: 246 seconds]
srid63 has quit [Ping timeout: 245 seconds]
srid63 has joined #home-manager
emi80 has joined #home-manager
emi80 has quit [Ping timeout: 256 seconds]
srid63 has quit [Ping timeout: 258 seconds]
srid63 has joined #home-manager
srid63 has quit [Read error: Connection reset by peer]
srid63 has joined #home-manager
pie_ has quit [Ping timeout: 248 seconds]
bsima- has quit [Quit: ZNC 1.7.2 - https://znc.in]
bsima1 has joined #home-manager
bsima1 has quit [Quit: ZNC 1.7.2 - https://znc.in]
bsima1 has joined #home-manager
bsima1 has quit [Client Quit]
bsima1 has joined #home-manager
bsima1 has quit [Quit: ZNC 1.7.2 - https://znc.in]
pie_ has joined #home-manager
bsima has joined #home-manager
bsima has quit [Client Quit]
bsima has joined #home-manager
bsima has quit [Quit: ZNC 1.7.2 - https://znc.in]
bsima has joined #home-manager
bsima has quit [Quit: ZNC 1.7.2 - https://znc.in]
bsima has joined #home-manager
patrikJohanss has joined #home-manager
<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.
<patrikJohanss> Here is my 4 lines home.nix: https://pastebin.com/WmTaYxke
<pie_> patrikJohanss, sounds like the perfect time to learn how to bisect, not that I know how to
<pie_> (alternatively someone might be able to just fix your problem)
<patrikJohanss> Do you see any problems at all with this stand-alone home.nix (https://pastebin.com/WmTaYxke)?
<pie_> that fetchtarball looks weird to me
<pie_> otherwise no idea
<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
<patrikJohanss> Here is the relevant bit: https://pastebin.com/svcNPA3y
<patrikJohanss> The new error message is
<patrikJohanss> "error: attribute 'float' missing, at /nix/store/f36vv95wlzb0wjmy5ip1yl75kw4rac9p-source/modules/programs/autorandr.nix:99:43"
<patrikJohanss> and I use nixos-rebuild switch
<patrikJohanss> Commenting out the parts (besides the import) related to HM rebuilds.
<infinisil> patrikJohanss: What does `nix-env --version` output?
<patrikJohanss> 2.0.4
<infinisil> patrikJohanss: What about `nix-info`?
<patrikJohanss> "system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, channels(root): "nixos-18.03.133402.cb0e20d6db9", channels(patjo): "home-manager-19.03", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs"
<infinisil> patrikJohanss: Ah I see the problem
<patrikJohanss> the "nixos-18.03"?!
<infinisil> Indeed
<infinisil> Changing stateVersion doesn't update nixos
<infinisil> IN fact stateVersion can only break your set up at best, and you should never changing
<infinisil> change it*
<infinisil> Upgrading NixOS is very badly explained, and the stateVersion misconception makes it even worse :/
patrikJohanss has quit [Ping timeout: 256 seconds]