ChanServ changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
immae has joined #home-manager
aaronjanse has quit [Ping timeout: 244 seconds]
kalbasit_ has quit [Ping timeout: 240 seconds]
Ericson2314 has quit [Ping timeout: 244 seconds]
NobbZ[m] has quit [Ping timeout: 244 seconds]
ZerataX has quit [Ping timeout: 240 seconds]
aaronjanse has joined #home-manager
NobbZ[m] has joined #home-manager
ZerataX has joined #home-manager
Ericson2314 has joined #home-manager
justanotheruser has quit [Ping timeout: 264 seconds]
justanotheruser has joined #home-manager
<nicolas[m]> Are `home.sessionVariables` available in an activation script? I presume they would be available after the linkGeneration phase?
monotux has quit [Quit: asdf]
monotux has joined #home-manager
heywoodlh has quit [Ping timeout: 246 seconds]
maxsc has joined #home-manager
cole-h has quit [Ping timeout: 256 seconds]
__monty__ has joined #home-manager
<maxsc> Anybody else gets: `/nix/store/k89nm2jva0qmvd970f84wq2iq1iwm9bs-bash-4.4-p23/bin/bash: line 0: echo: write error: Broken pipe` when sending email with msmtp?
<maxsc> I figured out its the `passwordeval` option, removing the newline from the command output makes the error disappear
<maxsc> As of version 1.8.0 the newline is also not required anymore: https://marlam.de/msmtp/news/msmtp-1-8-0/
<maxsc> So maybe this part of the code can be changed in hm?
cole-h has joined #home-manager
thibm has joined #home-manager
cole-h has quit [Ping timeout: 256 seconds]
heywoodlh has joined #home-manager
ardumont has quit [Quit: WeeChat 2.7.1]
ardumont has joined #home-manager
<maxsc> Ok, this is a problem in the latest version of msmtp, 1.8.13, with version 1.8.12 this is not problem..
ece has quit [Read error: Connection reset by peer]
evalexpr has joined #home-manager
ece has joined #home-manager
<piegames1> nicolas[m]: Why should they? I wouldn't even assume to have them after switching
matthewcroughan_ has quit [Remote host closed the connection]
matthewcroughan has joined #home-manager
<nf> is there a way to run an activation script as my own user instead of root, so i can use `systemctl --user` ? my use case is to enable a systemd service that's defined in config.systemd.user.services, and i can't use wantedBy because i don't want it enabled for all users
<nf> wait, it already runs as my user...
<nf> it just can't connect to dbus, apparently
<thibm> nf: I had this exact problem 2 years ago
<thibm> And I did not find a solution
<nf> :/
<nf> i don't know what systemctl needs to be able to talk to systemd, and why that isn't provided in the activation script
<thibm> nf: it was in NixOS config though, not hm
<nf> i shall investigate
<__monty__> Didn't rycee mention something about dBus related problems yesterday?
<nf> seems related to https://github.com/nix-community/home-manager/issues/601 which i don't understand
<{^_^}> nix-community/home-manager#601 (by danbst, 1 year ago, open): XDG_RUNTIME_DIR isn't set for `root` user, logged in via `sudo` inside SSH session
<nf> __monty__: doesn't look like the same problem
<nf> ok so i did solve it by setting XDG_RUNTIME_DIR, as explained in https://github.com/nix-community/home-manager/blob/master/modules/systemd.nix#L228-L231
<nf> i'm still not sure why this isn't set by default
<nf> i don't think my case involves sudo or su (?)
mtr has joined #home-manager
<mtr> hello, was about to create an issue on the github but I figured I'd ask here first: anyone use dzen in xmonad?
<mtr> currently using dzen through XMonad.Util.Dzen doesn't seem to add pkgs.dzen2 as a runtime dependency for the xmonad binary
<nf> (to clarify, i meant config.systemd.user.services from the NixOS config, not home-manager)
<thibm> OK, so it's the same issue as mine. I tried a few things and then gave up.
<thibm> So I enable the unit manually. It's really bad, because the systemd symlink (in config/systemd/user/) points to the store path, not the symlink in /etc/systemd/user/
<thibm> It means that it's not updated automatically when the unit is updated and that it gets broken at some point :(
maxsc has quit [Ping timeout: 240 seconds]
kalbasit has joined #home-manager
<DanielEbbert[m]> Does the home-manager by any chance keep a backup of the home.nix? For some reason the file is empty after rebooting the VM. I didn't get around to putting it in version control yet.
<DanielEbbert[m]> I found the previous generations and they contain everything except the home.nix.
<infinisil> DanielEbbert[m]: Nope, it isn't backed up anywhere
<DanielEbbert[m]> Then I just start from scatch. Luckily it was just a test setup to develop a configuration before installing NixOS on my laptop.
<nicolas[m]> On another hand, Flakes add the source directory to the /nix/store
<DanielEbbert[m]> Seems like I should look into Flakes.
cole-h has joined #home-manager
matthewcroughan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<patagonicus> home.file.".home.nix".source = ./home.nix; in your home.nix should also always keep it around (it'll also link the current version as ~/.home.nix, but that path doesn't matter).
<mtr> ooo that's a fun trick
matthewcroughan has joined #home-manager
drakonis has quit [Quit: ZNC 1.8.2 - https://znc.in]
andi- has quit [Ping timeout: 244 seconds]
andi- has joined #home-manager
drakonis has joined #home-manager
thibm has quit [Quit: WeeChat 2.6]
liff has quit [Ping timeout: 244 seconds]
mystfox has quit [Quit: Restarting for updates...]
glowpelt has joined #home-manager
liff has joined #home-manager
__monty__ has quit [Quit: leaving]
o1lo01ol1o has joined #home-manager