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
MmeQuignon has quit [Ping timeout: 260 seconds]
cole-h has quit [Quit: Goodbye]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
hmpffff has joined #home-manager
__monty__ has joined #home-manager
quinn has quit [Ping timeout: 256 seconds]
quinn has joined #home-manager
asymptotically has joined #home-manager
quinn has quit [Ping timeout: 260 seconds]
quinn has joined #home-manager
kyren has left #home-manager ["User left"]
MmeQuignon has joined #home-manager
__monty__ has quit [Quit: leaving]
__monty__ has joined #home-manager
c0c0 has quit [Quit: WeeChat 2.7.1]
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
hmpffff has joined #home-manager
cole-h has joined #home-manager
__monty_1 has joined #home-manager
__monty_1 has quit [Client Quit]
quinn has quit [Ping timeout: 258 seconds]
quinn has joined #home-manager
MmeQuignon has quit [Ping timeout: 272 seconds]
MmeQuignon has joined #home-manager
cole-h_ has joined #home-manager
cole-h_ has quit [Client Quit]
cjpbirkbeck has joined #home-manager
cole-h_ has joined #home-manager
cole-h_ has quit [Quit: Goodbye]
asymptotically has quit [Quit: Leaving]
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
quinn has joined #home-manager
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
hmpffff has joined #home-manager
hmpffff has quit [Client Quit]
<energizer> what causes .zprofile to be sourced in a noninteractive nonlogin shell?
<energizer> er no that doesn't happen
<energizer> how does nix get on my PATH for `ssh foo 'echo $PATH'`?
<immae> energizer: it executes your zsh shell which then runs the command. Like `zsh -c "echo $PATH"`, plus other argument (probably -l or the "-zsh" usual hack). Non-interactive zsh doesn’t source .zprofile (see man zshall it details precisely what files it sources in what situation)
<energizer> immae: that's what i'm wondering about. i can `ssh my-nixos 'echo $PATH'` and nix stuff will be shown on PATH
<energizer> but i dont know how it got there
<energizer> and nix isn't on path with my non-nixos home-manager system
<energizer> in non-interactive non-login ssh
<immae> energizer: other files get loaded
<immae> /etc/zshenv for instance
<energizer> immae: empty
<__monty__> Afaict non-interactive login zsh still reads zprofile and zlogin.
<immae> __monty__: the doc says it doesn’t load zprofile
<immae> (but it does load zlogin)
<immae> energizer: you should look at the doc it says precisely which files are read
<energizer> ssh foo echo isn't a login shell
<__monty__> Then that's probably right.
<immae> It is energizer
<immae> it’s not an interactive shell but it’s a login one
<energizer> ssh nixos 'if [[ -o login ]]; then; echo "login"; else; echo not login; fi'
<energizer> not login
__monty__ has quit [Quit: nn]
<immae> you may also have variables set via pam environment (look at /etc/pam.d/login if you have a pam_env.so conffile=/nix/store/somehash-pam-environment)
<energizer> /etc/pam.d/login has some stuff but nothing that looks related
<immae> /etc/pam.d/sshd maybe? (look for pam_env.so)
<energizer> i do have
<energizer> session required pam_env.so conffile=/nix/store/msxhz8cl5sb1fal0awzay231ci6d2vgw-pam-environment readenv=0
<immae> well
<energizer> in /etc/pam.d/login
<immae> look at /nix/store/msxhz8cl5sb1fal0awzay231ci6d2vgw-pam-environment then
<immae> it’s loaded
<immae> This is your initial environment ^
<energizer> ah that looks right
<energizer> how did that get created?
<immae> it’s pam configuration
<energizer> $ nixos-option system.build.pamEnvironment
<energizer> error: At 'pamEnvironment' in path 'system.build.pamEnvironment': Attribute not found
<immae> the module is called security.pam, I’m not sure what’s your point here? If you want to point that you didn’t define anything, it’s normal, they’re default values
<energizer> how can i see what the default values of system.build.pamEnvironment are?
<energizer> aha, i can look in the repl
<cole-h> Is there a way to specify a nixpkgs path for home-manager to use? I want my system on unstable, but I want to run my user account and its packages from master.
<energizer> thanks immae
<immae> you’re welcome
<immae> cole-h: only way is to set the variable before invocation: `NIX_PATH=nixpkgs=another-path home-manager ...`
<cole-h> Well, I'm planning on using hm through the NixOS module
<immae> ah sorry I missed that bit
<immae> Then I have no clue sorry
<immae> :q
<immae> (oups cursor went outside of vim)
<cole-h> My next question is: how do I get ~/.config/nixpkgs/overlays to apply for the NixOS module?
<energizer> cole-h: man home-configuration.nix talks about that under nixpkgs.overlays
<energizer> (won't necessarily answer your question but it might help)
<cole-h> `nixpkgs.overlays = [ (import ./overlays) ];` didn't fix it :(
<energizer> i think it's trying to say xdg.configFile."nixpkgs/overlays.nix".source =
MmeQuignon has quit [Ping timeout: 260 seconds]
<colemickens> Do you really want a file in your user home dir to affect the nixpkgs your system uses?
<cole-h> Is there a way to make the home-manager-user.service have verbose output or something? It's erroring, but the output isn't helpful.
<cole-h> colemickens: Kinda, yeah :P
<cole-h> OK, I commented something that was a crutch for when I wasn't on NixOS; problem solved.