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
{`-`} has joined #home-manager
<samueldr> rycee: https://logs.nix.samueldr.com/home-manager if you want to add it to the topic (probably should to alert users it is logged)
<rycee> Will do. Thanks!
samueldr has left #home-manager [#home-manager]
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
rah-test has left #home-manager [#home-manager]
pie__ has joined #home-manager
pie___ has quit [Ping timeout: 246 seconds]
pie_ has joined #home-manager
pie__ has quit [Read error: Connection reset by peer]
pie__ has joined #home-manager
pie_ has quit [Ping timeout: 250 seconds]
vdemeester has joined #home-manager
<vdemeester> rycee: o/
<rycee> Hey :-)
andi- has joined #home-manager
<andi-> o/
bemeurer has joined #home-manager
<bemeurer> Hi, rycee, are you around?
<bemeurer> Can I reference the i18n attribute set that's in my /etc/configuration.nix from my home-manager home.nix?
<rycee> Howdy.
<rycee> If you are using the NixOS module, then yes.
<rycee> If you aren't then yes, but it is a bit trickier.
<rycee> I should add that to the FAQ because I always forget the most convenient way to do it.
<rycee> Give that a try if you are using standalone HM.
<bemeurer> I think I'm using the NixOS module? How would I know?
<bemeurer> I just added the channel on my NixOS box and followed the install instructions
<rycee> Then you are using it standalone, i.e., you are using the `home-manager` command.
<bemeurer> Ah, yes :)
<rycee> In which case you can try the suggestion in the above link.
<bemeurer> rycee: I'll give it a shot, thanks!
<bemeurer> Also, two things:
<bemeurer> 1. Thank you for home-manager, it's amazing! I've been resisting leaving Gentoo for NixOS for a long time now, and the second I learned about home-manager I made the move
<rycee> No worries. Let me know if it still works well so I can add it to the FAQ :-)
<rycee> Awesome :-)
<bemeurer> 2. I have some scripts that I like to have on my user's path, just simple bash scripts that I had in my old setup, what's the best place to put them? xdg.dataHome/bin?
<rycee> I think HM could work on Gentoo as well. But I think it is most used on NixOS.
<bemeurer> Well, I am also tired of the 3h chromium build :P
<rycee> I would suggest to do something like `home.packages = [ (pkgs.runCommand "my-utils" {} ''for tool in ${./bin}"/"*; do install -D -m755 $tool $out/bin/$(basename $tool) done'') ];`
<rycee> Basically to make a simple package containing the scripts.
<rycee> Actually I guess something like `home.packages = [ ([pkgs.runCommand "my-utils" {} "mkdir -p $out; cp -r ${./bin} $out/") ]` might work equally well.
<rycee> Where `./bin` is the relative path to the directory containing you scripts.
<bemeurer> rycee: Hmm, trying the method you linked sysconfig.i18n seems to not be found
<rycee> Did you try referring to a specific option?
<rycee> I just now tried adding `home.file."TEST".text = (import <nixpkgs/nixos> {}).config.i18n.consoleFont;` to my config.
<bemeurer> Yep, let me show you a gist, one second
<rycee> And after `home-manager build` I get `result/home-files/TEST` containing `Lat2-Terminus16`.
<bemeurer> I have a section like this in my i3 configuration
<bemeurer> So L11/L122
<bemeurer> Wait wtf
<bemeurer> Now it worked :P
<rycee> Ah, nice :-)
<rycee> I'm heading to bed. See ya.
<bemeurer> rycee: Gnight! Thanks again!