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
mcwitt has quit [Ping timeout: 252 seconds]
mcwitt has joined #home-manager
mcwitt has quit [Ping timeout: 260 seconds]
mcwitt has joined #home-manager
<energizer`> I want to set PATH for my systemd user services. Normally that's done with `Environment=`. Looks like there's no Environment being passed in https://github.com/rycee/home-manager/blob/master/modules/services/emacs.nix so emacs daemon doesn't have my nix-profile on its PATH. Where can I override this?
mcwitt has quit [Ping timeout: 265 seconds]
<cole-h> Would something like `systemd.user.services.emacs.Environment = [ "ASDF=1" "ASDF2=2" ];` not work? (haven't tried it, so it might not...)
mcwitt has joined #home-manager
<energizer`> cole-h: I tried `systemd.user.services.emacs.Environment = {FOO="bar";};` and then after restarting the service I checked in emacs (getenv "FOO") but it was unset.
<cole-h> I don't think it takes attrs. Pretty sure it's a list in the form of `[ "VAR=var1" "VAR2=var2" ]` (or just "VAR=var1" if you only need 1)
<energizer`> Oh it's systemd.user.services.emacs.Service.Environment = ["FOO=bar"];
<cole-h> Oh yeah, sorry. I forgot that part :D
<energizer`> after restarting the service, nix profile is on the path without me changing anything. ‾\_(ツ)_/‾
mcwitt has quit [Ping timeout: 265 seconds]
mcwitt has joined #home-manager
mcwitt has quit [Ping timeout: 258 seconds]
mcwitt has joined #home-manager
boxscape has joined #home-manager
judson has quit [Remote host closed the connection]
judson has joined #home-manager
mcwitt has quit [Ping timeout: 255 seconds]
mcwitt has joined #home-manager
<cole-h> How would you translate `[diff "nodiff"] command = /usr/bin/true` for use in `programs.git`?
mcwitt has quit [Ping timeout: 255 seconds]
c0c0 has joined #home-manager
<cole-h> Ah, `diff."nodiff".command = "${pkgs.coreutils}/bin/true"` seems to do the job.
cole-h has quit [Ping timeout: 258 seconds]
malSet has quit [Quit: Quit.]
malSet has joined #home-manager
boxscape has quit [Remote host closed the connection]
__monty__ has joined #home-manager
mexisme has quit [Ping timeout: 272 seconds]
mexisme has joined #home-manager
energizer` has quit [Ping timeout: 260 seconds]
<andi-> rycee: uuuh now that I set `accounts.email.maildirBasePath` I see the following line in my activation scripts: ln -nsf /nix/store/s64bp21bl11sn5r26v20s3d9p4k91gd1-home-manager-files/home/andi/Maildir/.notmuch/hooks/post-new /home/andi//home/andi/Maildir/.notmuch/hooks/post-new that smells kinda like the other issue I'm seeing
<__monty__> Are you prefixing the value with your home directory?
<andi-> no, I just explicitly set it to the same value
<andi-> that value is also the default `/home/${user}/Maildir`.
<andi-> I just removed the double trailing slash by setting it explicitly
<andi-> time to dive into the home-manager code
<__monty__> But why is it /home/andi//home/andi? Twice the home dir is suspicious.
<andi-> __monty__: exactly. I am guessing that some code within home-manager was jsut never used/tested/thought of with absolute paths in mind.
<andi-> ohhh, home.file is the "issue" or at least the source of the duplicate path. `<home-manager/modules/programs/notmuch.nix>` uses the database path for the hooks. That DB path is derived from the maildir path. home.file actually expects a path RELATIVE to your home directory. While notmuch and maildir just work that way home.file gets confused about that.. Lets see if using just a relative path
<andi-> explicitly works. I guess it wont since e.g. neomut will then look at the wrong location when started from something that isn't my homedir.
c0c0 has quit [Ping timeout: 255 seconds]
c0c0 has joined #home-manager
<andi-> I am not entirely sure I solved the entire story but just setting `home.homeDirectory` to `/home/andi` instead of using getEnv USER (which is the same but well...) got rid of all the duplicate `/` in the path. That might now also fix all the weird notmuch issue I've been having...
c0c0 has quit [Ping timeout: 258 seconds]
c0c0 has joined #home-manager
cole-h has joined #home-manager
c0c0 has quit [Quit: WeeChat 2.6]
klntsky has quit [Ping timeout: 240 seconds]
klntsky has joined #home-manager
mexisme has quit [Quit: WeeChat 2.7]
__monty__ has quit [Quit: leaving]