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
iceypoi has quit [Quit: WeeChat 2.4]
thePirateKing has joined #home-manager
linarcx has joined #home-manager
<thePirateKing> hello @rycee! thank you for making this!
<ardumont> right! thanks!
linarcx has quit [Ping timeout: 252 seconds]
linarcx has joined #home-manager
linarcx has quit [Quit: WeeChat 2.4]
thePirateKing has quit [Remote host closed the connection]
thePirateKing has joined #home-manager
thePirateKing has quit [Ping timeout: 255 seconds]
<rycee> linarcx: For numlockx I'd suggest to add a separate HM module based on the pastebin iceypoi linked.
<rycee> linarcx: And for xinitrc I think it basically should look like the xsession file.
<rycee> Thanks thePirateKing and ardumont! Nice to hear you like HM :-)
lovesegfault has joined #home-manager
<lovesegfault> rycee: Ping, around?
<rycee> Yeah.
<lovesegfault> rycee: I'm trying to use home-manager on an AArch64 board
<lovesegfault> But something in my config is pulling in clisp, which is broken on AArch64
<lovesegfault> Any ideas on how to figure out where that is coming from?
<rycee> Does it say which drv file it wants to use?
<lovesegfault> rycee: Let me check, one second
<lovesegfault> Ah, crap, there's a rebuild going on that box, gimme 5 :)
<rycee> In any case, you can try running `nix why-depends $(home-manager generations | head -1 | grep -o '/nix.*') nixpkgs.clisp`
<rycee> It might show you something useful.
<rycee> Oh, sorry. I guess you don't have a generation to check.
<lovesegfault> Trying to run home-manager build; it's a bit stuck for some reason. This box is weird
<rycee> Unfortunately HM is pretty slow in evaluating the configuration :-( I hope we sometime can make it much faster.
<rycee> lovesegfault: In any case, if you find the Nix store path to the clisp drv file then you can run `nix-store -q --referrers {path to clisp.drv}` to see what pulls it in.
<lovesegfault> rycee: That's all I get, no drv
<rycee> lovesegfault: Aha. That's a pity. I think you'll have to add `nixpkgs.config.allowBroken = true;` to your Home Manager configuration and try again.
<rycee> Hopefully it will get further.
<lovesegfault> rycee: Alright, I'll give that a shot :)
<rycee> If it manages to build then you can use the tools to figure out the dependency path.
<lovesegfault> How do I get show-trace to actually work? I find it's hard to debug my config
<rycee> lovesegfault: You can run `/nix/store/yv86mvx3nq28yi7rs249ap5mc2yxsrc7-home-manager/bin/home-manager -v switch`
{`-`} has joined #home-manager
vdemeester has joined #home-manager
<lovesegfault> Hmm
<lovesegfault> I'm not sure whether this is my fault or HM's
thePirateKing has joined #home-manager
<rycee> Did you make any HM configuration file?
<lovesegfault> Yes, and it works in another machine, although with a minor difference. I think I know what the issue is, one second
<lovesegfault> So, in the machine that works isDesktop = true. In the one where I get that error, it's false
<lovesegfault> I suspect L6 doesn't work like I think it does?
<rycee> Yeah, it is unfortunately not safe to use `//` to merge NixOS or HM configurations.
<lovesegfault> rycee: That's surprising, I'll rewrite it like that and report back (I have quite a few of those :P )
<rycee> I'm not entirely certain this is the thing causing the error but in general `//` tends to cause issues.
daveyjones01 has joined #home-manager
thePirateKing has quit [Ping timeout: 264 seconds]
daveyjones01 has quit [Remote host closed the connection]
<lovesegfault> rycee: What happens if I mkMerge conflicting things?
<lovesegfault> Like mkMerge [ { foo = true; } { foo = false; }];
<rycee> You mean the same key multiple times? You should get an error message.
<lovesegfault> Ah, neat :)
<rycee> Yeah, I think that will result in an error saying something about the same option being defined twice.
<rycee> Feel free to try it. I might be wrong :-)
<rycee> I'm heading to cook some dinner now. See ya.
<lovesegfault> rycee: See ya! Thanks for all the help!
iceypoi has joined #home-manager
NickHu has joined #home-manager
thePirateKing has joined #home-manager
linarcx has joined #home-manager
johanot has joined #home-manager
wolfman154 has joined #home-manager
<wolfman154> 14:45 wolfman154: 14:42 wolfman154: rycee: thanks, another quick question I’m installing terminator in home-manager and setting it up in xmonad, so do I still need i18n console internationalization properties settings or can I just erase them? I’m trying to stay as minimal and simple as possible.
linarcx has quit [Quit: WeeChat 2.4]
<wolfman154> 14:45 wolfman154: rycee: and is there a settings option for terminator in home-manager , I saw one for the urxvt terminal emulator.
<wolfman154> rycee: ok I posted my questions here liking you said
<rycee> wolfman154: I don't think there is any module for terminator. You can see the available options here: https://rycee.gitlab.io/home-manager/options.html
<rycee> If you mean the i18n options from NixOS then I think you can manage without them unless you have some special requirements.
<wolfman154> rycee: ok thanks, sounds good, do you mind if I paste bin links to my nix files and my xmonad.hs ? I’m going to try another rebuild, if it does not work for some reason, you could take a look at it?
<rycee> Sure.
<wolfman154> rycee: ok, one sec
<wolfman154> rycee: I have to change a few more things, I’ll paste bin the links in a 10 minutes
wirew0rm has joined #home-manager
dtz has joined #home-manager
* dtz waves
<rycee> dtz: Howdy :-)
<wolfman154> rycee: almost ready I have to type the links on my phone
johanot has quit [Quit: WeeChat 2.4]
<wolfman154> rycee: I installed home-manager in configuration.nix but I don’t know where home.nix is, it is usually in: /home/wolf/.config/nixpkgs/home.nix , does configuration.nix install it in a different location?
<rycee> Umm, what do you mean by configuration.nix installing it?
<wolfman154> rycee: instead of installing it from the instructions from your GitHub web page, I instead installed it on configuration.nix: environment.systemPackages = with pkgs; [ home-manager ];
<wolfman154> rycee: home-manager command works now but I think it’s home.nix is setup in a different directory?
<wolfman154> The terminator command: which home-manager Shows: /run/current-system/sw/bin/home-manager And the whereis command just shows home-managers /nix/store/ location?
<iceypoi> rycee: How can I make a string replacement in a file using nix? The xmonad module wants a path to an xmonad.hs, but inside the xmonad.hs, I need the path to xmobar... and that I only get from ${pkgs.xmobar}
<wolfman154> rycee: do I use the: ‘which home-manager’ directory location?
<rycee> The ~/.config/nixpkgs/home.nix file is a file that you create. It should contain the Home Manager configuration that you wish to use.
<rycee> You can see an example in the Home Manager README: https://github.com/rycee/home-manager/blob/master/README.md#usage
<wolfman154> rycee: oh ok, I wasn’t sure if installing it in configuration.nix would automate that for me. Ok I’ll create the directory and file
<rycee> For making string replacements in files you can, for example, use a runCommand derivation using substituteInPlace to perform the actual replacement. Alternatively install xmobar to your profile and then you should be able to access it from PATH.
<rycee> I'm heading to bed. Good luck!
<iceypoi> thx
<wolfman154> Thanks
<wolfman154> rycee++
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
iceypoi has quit [Quit: WeeChat 2.4]
thePirateKing has quit [Quit: Leaving]