<aterius>
For some reason with the above, onedark fails to load on initialization (lots of missing variable errors from neovim), but `colorscheme ondark` works fine after start
<aterius>
* For some reason with the above, onedark fails to load on initialization (lots of missing variable errors from neovim), but `colorscheme onedark` works fine after start
cole-h has quit [Quit: Goodbye]
vdemeester has quit [Ping timeout: 272 seconds]
s1341_ has quit [Read error: Connection reset by peer]
bradparker has quit [Read error: Connection reset by peer]
vdemeester has joined #home-manager
bradparker has joined #home-manager
s1341_ has joined #home-manager
davidtwco has quit [Read error: Connection reset by peer]
<W1lkins>
what's the best practice for managing $PATH? I'm using `programs.go = { enable = true; goPath = "go"; goBin = "go/bin"; }` but my $PATH doesn't include `$HOME/go/bin` - what am I missing? I've tried using PATH="${builtins.getEnv ("PATH"):${builtins.getEnv ("HOME")}/go/bin" but that seems wrong to me and seems to clutter $PATH with a bunch of
<W1lkins>
unnecessary stuff
o1lo01ol1o has quit [Remote host closed the connection]
ja0nz has quit [Ping timeout: 265 seconds]
byFate` has joined #home-manager
byFate` has quit [Quit: OMG omG!. The Earth will explode the wicked world. Alien or Amen. https://bit.ly/33tb5lx]
c0c0 has joined #home-manager
<c0c0>
In my home.nix, I'm importing some other files. In those, I declare some often-used variables with let... in. How can I define them globally in home.nix, and then use them in the imported files? I'm pretty new to Nix...
<NobbZ[m]>
"c0c0" (https://matrix.to/#/@freenode_c0c0:matrix.org) take a look into how to write modules
<Ke>
dsal: ok I can follow that, can you try to formulate a question based on that example?
<Ke>
dsal: if you put things in your toplevel config nix will make you put your stuff inside config, just everything like before but inside config
<Ke>
maybe to avoid collisions in namespaces
<Ke>
or you can just put it in separate file and then just imports = [./otherfile];
<Ke>
if you don't want to make the service optional you can probably just put systemd.user.services.<name> in your toplevel config
<Ke>
ie. omit the config prefix
<Ke>
I haven't used home-manager at all, but I assume it works like nixos system builds
ja0nz has quit [Remote host closed the connection]
<dsal>
Ke: systemd.user.services was the clue. It's still a different form than the one in my /etc/nixos/configuration.nix, but I somewhat got it going.