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
__monty__ has quit [Quit: leaving]
cjpbirkbeck has joined #home-manager
evanjs- has joined #home-manager
evanjs has quit [Ping timeout: 256 seconds]
evanjs- has quit [Read error: Connection reset by peer]
evanjs has joined #home-manager
<DamienCassou> hi everyone
<DamienCassou> why is there a syncthing service in home-manager and another (much larger) one in nixos? What is the difference? Is there a reason to use the one of home-manager?
<energizer> the hm one is at the user level
<energizer> someone could port the nixos one to hm, that would be nice
<DamienCassou> in my config, I have `services.syncthing.enable = true;` with `services.syncthing.systemService=false;` and then `systemctl --user enable syncthing`
<DamienCassou> I think this activates the package's unit file
romanofski has quit [Quit: ZNC 1.7.4 - https://znc.in]
romanofski_ has joined #home-manager
<hpfr[m]> rycee: home-manager.service suggests restarting the polybar user service when you update the module. is it not possible to automatically restart it on rebuild switch?
malSet has quit [Read error: Connection reset by peer]
hmpffff has joined #home-manager
malSet has joined #home-manager
coco has joined #home-manager
<rycee> <hpfr[m] "rycee: home-manager.service sugg"> hpfr (@hpfr:matrix.org): Try setting `systemd.user.startServices = true`
liff has joined #home-manager
<hpfr[m]> rycee: thanks! I also have this issue with polybar where the systemd log says the start request was repeated too quickly. I think it occurs for good reason the first time (i.e. I actually did try to restart it too quickly in succession), but once it occurs, it happens every subsequent time I restart, no matter how long I wait. Any ideas?
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
<hpfr[m]> never mind, I was looking at too short a log from systemctl status. the journalctl shows that I'm only seeing the result of an automatic restart after it fails due to a config error
quinn has joined #home-manager
quinn has quit [Client Quit]
romanofski_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
romanofski has joined #home-manager
<DamienCassou> I've successfully switch my bash, notmuch and msmtp configuration to home-manager. It looks great so far. Thank you. Looking forward migrating more
asymptotically has joined #home-manager
hmpffff_ has joined #home-manager
hmpffff has quit [Ping timeout: 246 seconds]
<DamienCassou> home-manager has several options of type `string` that I would not like to inline within the nix file. Can I ask home-manager to read the content of this string from a file instead?
<DamienCassou> for example, I would like to be able to do something like `programs.notmuch.hooks.postNew = lib.readFile ./hooks/post-new`
<NobbZ[m]> IIRC there is `builtins.readFile`
<DamienCassou> thank you. I'm trying
hmpffff_ has quit [Quit: nchrrrr…]
<eyJhb> But as far as I know, it will still reside in your /nix/store, if it is because of privacy concerns DamienCassou
hmpffff has joined #home-manager
hmpffff has quit [Ping timeout: 260 seconds]
__monty__ has joined #home-manager
hmpffff has joined #home-manager
<DamienCassou> eyJhb: thank you.
<DamienCassou> I just didn't wanted to put a large bash script in the middle of my nix conf
<eyJhb> DamienCassou: could also put it into another .nix file, and import it :p
<eyJhb> That way you have it a single place, but depends on your setup
romanofski_ has joined #home-manager
romanofski has quit [Read error: Connection reset by peer]
coco has quit [Ping timeout: 256 seconds]
coco has joined #home-manager
<DamienCassou> I prefer to have bash scripts in a bash file so I get syntax highlighting and linting
cole-h has quit [Quit: Goodbye]
<kloenk> DamienCassou: For larger bash script you also can use the substituteAll function from nixpkgs. This way you can produce a pure bash script, where you force set the path
hmpffff_ has joined #home-manager
hmpffff has quit [Ping timeout: 256 seconds]
hmpffff_ has quit [Quit: nchrrrr…]
<DamienCassou> kloenk: I don't really understand how substituteAll would help me. Can you please elaborate a bit?
hmpffff has joined #home-manager
cjpbirkbeck has quit [Quit: cjpbirkbeck]
cjpbirkbeck has joined #home-manager
mankyKitty has quit [Ping timeout: 260 seconds]
manveru has quit [Ping timeout: 260 seconds]
mankyKitty has joined #home-manager
manveru has joined #home-manager
<kloenk> DamienCassou: With that you can write your script as .sh file, but things like the interperter and the PATH are exchanged by nix, so that this script is pure and does not depend on your environment
hmpffff has quit [Quit: nchrrrr…]
<kloenk> rycee: I think we should extend the issue template to incude some form of system info, like `nix-shell -p nix-info --run "nix-info -m"`.
<DamienCassou> kloenk: good, thank you
<kloenk> rycee: maybe even adapt nix-info to detect if on nixos the user is using hone-manager via the nixos module, or via home.nix
<__monty__> rycee: Is it possible to use the firefox module with a homebrew installed firefox?
<__monty__> Or an expression that simply fetches a dmg and unpacks that?
hmpffff has joined #home-manager
<__monty__> rycee: And how do I find the addonId and the download url? It's not obvious to me from the mozilla addons page.
<__monty__> Found the URL by spoofing the useragent. Still looking for the addonid.
asymptotically has quit [Ping timeout: 240 seconds]
klntsky has quit [Ping timeout: 240 seconds]
klntsky has joined #home-manager
asymptotically has joined #home-manager
coco has quit [Ping timeout: 264 seconds]
c0c0 has joined #home-manager
MmeQuignon has joined #home-manager
cole-h has joined #home-manager
c0c0 has quit [Quit: WeeChat 2.6]
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #home-manager
ashkitten has quit [Quit: WeeChat 2.8]
<pistache> is it normal that home-manager doesn't use /etc/set-environment ?
ashkitten has joined #home-manager
<pistache> my problem is that have environment.homeBinInPath set to true, but that users that use HM don't have ~/bin in $PATH
<NobbZ[m]> `/etc` doesn't sound like "home"…
quinn has joined #home-manager
<NobbZ[m]> Oh, I think I understand now. "regular" users have `~/bin` in `PATH` because something sources `/etc/set-environment` for them, though your users that use `home-manager` do not that in `PATH`?
<pistache> NobbZ[m]: exactly
hmpffff has quit [Quit: nchrrrr…]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<NobbZ[m]> Sadly all I can say, that neither in my `~` (using HM), nor in my sons `~` (not using HM) is any reference to that file…
<NobbZ[m]> Did a `find ~ -type f -exec grep -n set-environment '{}' +` in each
klntsky has quit [Remote host closed the connection]
klntsky has joined #home-manager
MmeQuignon has quit [Ping timeout: 260 seconds]
andi- has quit [Quit: WeeChat 2.8]
<hexa-> error: Use wrapMpv for editing the environment of mpv
<hexa-> I'll open an issue asap
andi- has joined #home-manager
__monty__ has quit [Quit: leaving]
asymptotically has quit [Quit: Leaving]