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
cole-h has joined #home-manager
<aterius> Is there anything special that has to be done for neovim plugins?
<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]
sgraf has quit [Ping timeout: 272 seconds]
davidtwco has joined #home-manager
sgraf has joined #home-manager
romanofski has quit [Ping timeout: 240 seconds]
romanofski has joined #home-manager
la-jesystani has quit [Ping timeout: 240 seconds]
__monty__ has joined #home-manager
ja0nz has joined #home-manager
quinn has quit [Quit: ZNC 1.8.1 - https://znc.in]
<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
<NobbZ[m]> "W1lkins" (https://matrix.to/#/@freenode_W1lkins:matrix.org) "PATH = "$PATH:${config.programs.go.goBin}"" might do.
<NobbZ[m]> * "W1lkins" (https://matrix.to/#/@freenode_W1lkins:matrix.org) "PATH = "$PATH:$HOME/${config.programs.go.goBin}"" might do.
<NobbZ[m]> The way you did is problematic, as it will cause an exploding path with each rebuild of the config
ja0nz has joined #home-manager
kraem has quit [Quit: outta here]
<ja0nz> W1lkins: Not best practice but I have mine at home.sessionVariables
<ja0nz> = { PATH = "/home/user/.yarn/bin:$PATH"; }; A sane setup would probably involve ~/.nix-profile/bin
cole-h has joined #home-manager
joesventek has quit [Quit: Quit]
c0c0 has quit [Quit: WeeChat 2.7.1]
<dsal> Does anyone have a simple example of running a custom service?
<Ke> do you mean as a user or as system service?
nf has joined #home-manager
<Ke> freedesktop has autorun specification maybe home-manager supports that
<Ke> if not adding support should not be that hard
<dsal> I just want to run a service as a user.
<dsal> It looks like modules support this, but it doesn't seem obvious that there's a way to add a module (that nobody else would ever want to run)
<Ke> maybe look at the other modules
<dsal> Yeah, I looked in a module, but I don't think I understand the nix language well enough. The module received config, and then mostly just assigned a service definition to that config parameter. That doesn't seem appropriate in my toplevel config. e.g. https://github.com/rycee/home-manager/blob/master/modules/services/blueman-applet.nix#blob-path
<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.
cole-h has quit [Quit: Goodbye]
AlpineLlama has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AlpineLlama has joined #home-manager
__monty__ has quit [Quit: leaving]
quinn has joined #home-manager