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
dermetfan has quit [Ping timeout: 260 seconds]
andi- has joined #home-manager
sheeldotme has joined #home-manager
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sheeldotme has joined #home-manager
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sheeldotme has joined #home-manager
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cole-h has quit [Quit: Goodbye]
sheeldotme has joined #home-manager
malSet has joined #home-manager
<teto> problem with setting variables such as $MPV_HOME is that you need a relogin for changes to propagate. and wrapping would be deceiptive. Best to leave it to user then (or you could provide a module that does that).
dermetfan has joined #home-manager
asymptotically has joined #home-manager
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KarlJoad has joined #home-manager
__monty__ has joined #home-manager
KarlJoad has quit [Quit: Konversation terminated!]
<theduke> But yeah I understand that it's problematic from a intuitive package design perspective that also minimizes quirks
<theduke> In my custom setup I used wrapping or set global env vars.
<theduke> But I do have to say home-manager is brilliant. Saves so much work and effort necessary for a reproducible setup
<theduke> ps: I switched to Nix quite a few months ago, but initially decided against home-manager and wrote a lot of custom packages because I didn't want "yet another tool".
<theduke> 👍️
<theduke> But I do have to say home-manager is brilliant. Saves so much work and effort necessary for a reproducible user setup
<theduke> * ps: I switched to Nix quite a few months ago, but initially decided against home-manager and wrote a lot of custom packages because I didn't want "yet another tool".
<theduke> 👍️
cole-h has joined #home-manager
toraritte has joined #home-manager
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #home-manager
rschulman has joined #home-manager
sheeldotme has joined #home-manager
onsails has joined #home-manager
<onsails> Hello!
<onsails> I am learning nix by adopting home-manager. Successfully migrated my windows (wsl), cloud linux workstation and laptop to home-manager, love it! I even managed to handle customisation based on machine and role types. But I don't fully understand why imports work in a way they work.
<onsails> imports = [ ./nix-home/user/wb.nix ./nix-home/role/linux.nix ./nix-home/machine/vscode.nix];
<onsails> in linux.nix I have
<onsails> program.zsh.envExtra = '' export TEST=foo;'';
<onsails> in vscode.nix I have
<onsails> program.zsh.envExtra = '' export TEST2=bar;'';
<onsails> Finall .zshenv renders:
<onsails> export TEST2=barexport TEST=foo;
<onsails> (my irc client omitted line break here)
<onsails> Why is TEST2 rendered before TEST? I include linux.nix (with TEST) before vscode (with TEST2)
<__monty__> IRC doesn't allow line breaks. Use a pastebin to share considerably amounts of text.
<__monty__> ,pastebin
<__monty__> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<onsails> yeah, done
<cole-h> onsails: I'd imagine because one is getting evaluated before the other. I don't think Nix-the-language has any ordering guarantees in that regard (or at least when dealing with types.lines)
<rycee> onsails: The merge order across modules is a bit complex and depends on how the fix point is reached. It is best not to rely on things happening in a specific order across module files.
<cole-h> ^
<onsails> I see, thanks
<rycee> You can control it a bit using priorities. So if you want the TEST one first then you should be able to write something like `program.zsh.envExtra = lib.mkBefore '' export TEST=foo;'';`
<rycee> (or `program.zsh.envExtra = lib.mkAfter '' export TEST2=bar;'';`
onsails1 has joined #home-manager
<onsails1> Perfect, thanks! But I get it that such implicit dependencies aren't a good practice. I'll try to find a way to get rid of that dependency, making declarations more atomic.
onsails has quit [Remote host closed the connection]
asymptotically has quit [Quit: Leaving]
onsails1 has quit [Quit: Leaving.]
onsails has joined #home-manager
__monty__ has quit [Quit: leaving]
sheeldotme has quit [Quit: Textual IRC Client: www.textualapp.com]
dermetfan has quit [Ping timeout: 244 seconds]