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
hexa- has joined #home-manager
cole-h has quit [Ping timeout: 260 seconds]
hexa- has quit [Quit: WeeChat 2.9]
hexa- has joined #home-manager
Guest74761 has quit []
dsal has joined #home-manager
dsal is now known as Guest85365
Guest85365 is now known as dsal
cole-h has joined #home-manager
AlpineLlama has quit [Ping timeout: 272 seconds]
dermetfan has joined #home-manager
maier has joined #home-manager
maier is now known as kenran
dermetfan has quit [Ping timeout: 272 seconds]
cole-h has quit [Quit: Goodbye]
evalexpr has quit [Quit: Bye]
AlpineLlama has joined #home-manager
dermetfan has joined #home-manager
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
superherointj has joined #home-manager
superherointj has quit [Quit: Leaving]
<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?
kenran has quit [Ping timeout: 272 seconds]
cole-h has joined #home-manager
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
superherointj has joined #home-manager
<eyJhb> Did someone kill rycee ? :p
kenran has joined #home-manager
kenran has quit [Ping timeout: 272 seconds]
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
<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> THe channels - https://status.nixos.org/
<eyJhb> Since it have advanced since last time
<eyJhb> Hoping for the best..
<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> Did it have RemainAfterExit?
<eyJhb> Yes :)
<eyJhb> Like this, right https://termbin.com/1va9f
<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> Wirtten in go!
<eyJhb> Damn
<eyJhb> But that is for more than just systemd, right?
<eyJhb> Nope
<rycee> No, it'll just talk with systemd.
kenran has quit [Ping timeout: 260 seconds]
<rycee> Problem is it talks to systemd over d-bus, which doesn't work very well on NixOS.
<rycee> Hopefully that'll change soon, the proposed fix is in staging now.
<eyJhb> Fix in NixOS?
<eyJhb> Got any PR link for that?
<{^_^}> nixpkgs#97801 (by rycee, 5 days ago, merged): Make socket activated user dbus session mandatory
<eyJhb> Cool!
<eyJhb> I have updated https://github.com/nix-community/home-manager/pull/1436 now rycee , if you have any notes please let me know there
<{^_^}> nix-community/home-manager#1436 (by eyJhb, 5 weeks ago, open): WIP: Firefox policies w/ extensions integration
<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.
<evanjs> alexarice[m]: sorry, should have clarified lol. the ability for nixos-option to query currently set options is what I am looking for
<evanjs> can't exactly use it outside nixos tho
<alexarice[m]> ah I'm not sure then
<evanjs> yeah I'm finding various things I can import via e.g. nix eval or repl but no clue if there's a practical way to query the config
<pbogdan> `nixos-option --options_expr "(import <home-manager/modules> { configuration = /home/pbogdan/.config/nixpkgs/home.nix; pkgs = import <nixpkgs> {}; }).options" --config_expr "(import ./modules { configuration = /home/pbogdan/.config/nixpkgs/home.nix; pkgs = import <nixpkgs> {}; }).config" qt.enable`
<pbogdan> this seems like it might work so long as there's a home-manager channel or the import is pointed to a local home-manager/modules path
joesventek has quit [Quit: Quit]
<pbogdan> and I think on non-nixos you can get nixos-option from `nix-build "<nixpkgs/nixos>" -A config.system.build.nixos-option`
<pbogdan> (unless it's aliased somewhere else too)
joesventek has joined #home-manager
joesventek has quit [Client Quit]
<pbogdan> evanjs: ^
joesventek has joined #home-manager
__monty__ has joined #home-manager
kenran has joined #home-manager
<evanjs> pbogdan: mrm I will try that next. Just pinging config straight from the repl doesn't seem to work but that looks like it might get further
kenran has quit [Ping timeout: 272 seconds]
fzakaria has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
fzakaria has joined #home-manager
__monty__ has quit [Quit: leaving]
superherointj has quit [Quit: Leaving]
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
kenran has joined #home-manager
kenran has quit [Ping timeout: 260 seconds]