<evanjs>
rycee: so if I wanted to add autojump for zsh (and I guess others?) do you think a blanket autojump (that is exported to all the relevant shells) like what NixOS uses might be best? Or separate programs.<shell>.enableAutojump options?
<rycee>
evanjs: The Bash module already has an `enableAutojump` option. But it might be good to add a specific `programs.autojump` module, you could add `enableBashIntegration` and `enableZshIntegration` inside there. Alias the old `programs.bash.enableAutojump` option to `programs.autojump.enable` for backwards compatibility.
<rycee>
eyJhb: Not really. I just have been involved with other things.
<evanjs>
rycee: right yeah I saw the bash option and figured the rest might be helpful, esp since they're already available as NixOS options. Will try that when I get to it, then
<rycee>
eyJhb: Does your oneshot service have `RemainAfterExit = true;`?
<rycee>
For the bash config you might need something like `mkBefore ". ${pkgs.autojump}/share/autojump/autojump.bash"` so that it shows up early in `initExtra`.
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
<rycee>
julm: Nice writeup :-) A handy idiom when wanting to quickly iterate on a file managed through `home.file.foo.source = ./bar` is to change it to something like `home.file.foo.source = config.lib.file.mkOutOfStoreSymlink ./bar` then do a hm switch. That should make `~/foo` a "live view" of the `./bar` file. When ready remove the `mkOutOfStoreSymlink` function call and do another hm switch.
<julm>
rycee: oh, good to know, I'll test it
immae_ has quit [Quit: WeeChat 2.9]
immae has joined #home-manager
<eyJhb>
rycee: no I did not, I will check if that fixes it when I have the time again :) Also good to see you are alive! Thought it was that way, was not to annoy you ;)
<eyJhb>
Guessing you have a lot going on in general! :) Maybe some of the new admin/PR moderators/whatever will come in and answer such questions as mine to offload you
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
<rycee>
No worries. I do very much appreciate that people are helping each other in here. I would have a hard time keeping up myself :-)
joesventek has quit [Client Quit]
joesventek has joined #home-manager
<eyJhb>
For some reason my nixos/hm needs to compile libreoffice at times
<eyJhb>
Even if I change nothing, and it fails all the time..
<rycee>
eyJhb: Have you checked the status of libreoffice on Hydra for your Nixpkgs commit?
<eyJhb>
Not yet rycee , but I have now pulled the latest nixos-unstable
<eyJhb>
HM doesn't use libreoffice at all, does it?
<rycee>
No, there is nothing related to libreoffice in HM.
<eyJhb>
The worst part about it, is that it seems random at when it needs it. Eg. point it at a nixpkgs dir with the same checkedout sha, and it will not (sometimes), other times it will
<eyJhb>
Nope, still fails.
<rycee>
Maybe you have some overlay or something that changes a dependency of libreoffice?
<eyJhb>
I think it might be some fun with my nixus setup, if I point it to a specific nixpkgs dir using -I it will rebuild
<eyJhb>
But now it is rebuilding the entire world because of the pull for the channel :p
<eyJhb>
So I can report back once that is done
<eyJhb>
rycee: rebuild and everything, but shouldn't I expect hm to restart the module as it has changed? A path inside the module is different now (the policies.json file), and it should make another relink
<eyJhb>
Currently I have to start it each time
<rycee>
You mean the oneshot service?
<eyJhb>
Yeah
<eyJhb>
The goal is that on each switch + boot it should run the service
<rycee>
eyJhb: And you have `systemd.user.startServices = true` in your HM configuration?
<eyJhb>
Nope! Didn't know that was a thing
<eyJhb>
Thought it was automatic
<rycee>
Unfortunately the default is `systemd.user.startServices = false` so it uses the naive Bash code to figure out what to suggest, which is far from flawless.
kenran has joined #home-manager
<rycee>
We can't have it enabled by default since it would pull in Ruby as a dependency.
<evanjs>
mmmm so lightweight :P
<eyJhb>
rycee: that works
<eyJhb>
But maybe it should be looked a little more at the bash code then, it is what I was currently debugging
<eyJhb>
The way it tells the difference is files seems weird (for me), os it just compares two files of filenames (not paths)
<eyJhb>
in files* but I am not 100% I understand how it works. Might look at it at some point!
<rycee>
The idea is to throw away both the bash and ruby code.
<rycee>
And instead use a smallish external program.
<eyJhb>
I have not 100% tested et yet, but it should work including working with the patched Firefox I have linked, and without. But it does however use the extensions in another way, as is also linked
<evanjs>
what's the easiest way to query home-manager options outside nixos? since I can't use nixos-option, etc.