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
cole-h has joined #home-manager
cole-h has quit [Client Quit]
cole-h has joined #home-manager
ornxka has quit [Quit: No Ping reply in 180 seconds.]
ornxka has joined #home-manager
cole-h has quit [Quit: Goodbye]
cole-h has joined #home-manager
cjpbirkbeck has joined #home-manager
coco has quit [Ping timeout: 265 seconds]
coco has joined #home-manager
klntsky has quit [Ping timeout: 240 seconds]
klntsky has joined #home-manager
klntsky has quit [Remote host closed the connection]
klntsky has joined #home-manager
cjpbirkbeck has quit [Quit: cjpbirkbeck]
cole-h has quit [Quit: Goodbye]
cole-h_ has quit [Quit: Goodbye]
s1341 has quit [Ping timeout: 252 seconds]
s1341 has joined #home-manager
asymptotically has joined #home-manager
__monty__ has joined #home-manager
coco has quit [Ping timeout: 265 seconds]
coco has joined #home-manager
romanofski has quit [Ping timeout: 265 seconds]
romanofski has joined #home-manager
romanofski has quit [Ping timeout: 265 seconds]
romanofski has joined #home-manager
mog has quit [Ping timeout: 246 seconds]
mog has joined #home-manager
cole-h has joined #home-manager
cjpbirkbeck has joined #home-manager
cole-h_ has joined #home-manager
cole-h__ has joined #home-manager
cole-h has quit [Ping timeout: 265 seconds]
cole-h__ is now known as cole-h
MmeQuignon has joined #home-manager
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
evanjs has joined #home-manager
mog has quit [Ping timeout: 265 seconds]
mog has joined #home-manager
<aterius> This might be a convoluted question, but is there a way to do a more templating based approach to shell files (like zshrc) where I source the text file but also do substitutions for thinks like ${pkgs.openssh}/bin/ssh-keygen}?
<aterius> My issue is I need the powerlevel10k instant prompt at the very top of the file
<aterius> Yet I also need to source my home-manager vars before calls out to things like z-lua and fzf
<aterius> I could write it entirely with string concatenation in nix, but then my config becomes less portable to non-nixos systems
<dash> Why's that make it less portable?
<__monty__> You can drop a .zshrc anywhere and it'll work. Can't do the same with a convoluted nix string concatenation without nix.
<dash> Sure but why would you try to use zsh without nix
<__monty__> Simply wanting to be able to share your dotfiles is sufficient reason imo. I don't see why you'd make it unnecessarily dependent on nix.
<energizer> i have a ~/.zshrc without reference to nix and a ~/.config/zsh/.zshrc that uses nix and sources ~/.zshrc
<aterius> I do the same, but there are a few issues
<energizer> what issues?
<aterius> Right now I have to either A) Accept home-manager adding things to the beginning/end of my zshrc which means I have some repetition
<aterius> B) not use any nix store dependent paths in my zshrc
<aterius> I found one example where someone substituted string in a sourced file using a substitute.nix
<energizer> what repetition?
<aterius> Might copy that unless there is a more idiomatic way
<aterius> Right now I do something like this
<aterius> I have to use initExtraBeforeCompinit, because I need a certain command to run at the beginning of my zshrc
<infinisil> We really need more DAGs!
<aterius> As a consequence, my entire zshrc runs before reaching the line . "/home/mjlbach/.nix-profile/etc/profile.d/hm-session-vars.sh" added by home-manager
<aterius> * As a consequence, my entire zshrc runs before reaching the line . `"/home/mjlbach/.nix-profile/etc/profile.d/hm-session-vars.sh"` added by home-manager
<aterius> So I have to manually add that in my sourced zshrc at the top, such that things managed by nix are present in my path
<aterius> Furthermore, home-manager adds a lot of settings by default (like HISTORY) which I've already defined in my zshrc
<energizer> can you break it up so that the part that must run early goes in the beforeCompInit and the rest goes in initExtra
<aterius> I could, but then I have two separate files
<energizer> two separate files for two separate configurations sounds like a win
<aterius> It's not though, it's one zshrc
<energizer> you can have two
<aterius> Yeah, I'm aware how to do it
<energizer> so what's the problem?
<aterius> <aterius "I could write it entirely with s"> This ^
<aterius> Right now, I can use exactly the same zshrc on systems without nix
<aterius> Also, it still doesn't solve the issue that HM adds by default things at the beginning of the zshrc
<energizer> is it a problem that HELPDIR is added?
<aterius> Well, ideally I would be able to control where it's added
<aterius> The order of the zshrc is important though, yes
<energizer> is the early HELPDIR happening too early?
<aterius> Nothing isn't working currently
<aterius> Except the fact that HM is being sourced so late in the file, that I just manually added it to my zshrc earlier
<aterius> it doesn't matter because there's a check, but it does make the generated file have redundancies
<__monty__> aterius: Maybe you can split the zshrc *in nix*? So the compInit = head .zshrc; and initExtra = tail .zshrc; pseudocode of course.
<aterius> Yeah, I was thinking about that
<aterius> Although right now I'm trying to implement a substitution macro idea
cjpbirkbeck has quit [Remote host closed the connection]
cjpbirkbeck has joined #home-manager
cjpbirkbeck has quit [Remote host closed the connection]
cjpbirkbeck has joined #home-manager
coco has quit [Ping timeout: 256 seconds]
coco has joined #home-manager
cole-h has quit [Quit: Goodbye]
cole-h has joined #home-manager
__monty__ has quit [Quit: leaving]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
asymptotically has quit [Quit: Leaving]
MmeQuignon has quit [Ping timeout: 260 seconds]
coco has quit [Ping timeout: 246 seconds]
hmpffff has joined #home-manager
hmpffff has quit [Quit: nchrrrr…]