<aveltras>
is there a way to disable the "# -*- mode: sh -*-" in generated .profile script ? this breaks when im trying to source $HOME/.nix-profile/etc/profile.d/nix.sh
<piegames>
aveltras: Only if you configure some environment variables
<aveltras>
piegames: do you have an example ?
<piegames>
aveltras: If you enable the XDG module, it will set `XDG_CACHE_HOME`, `XDG_CONFIG_HOME`, etc. in there. If you enable the option for non-NixOS support, it will also source `.nix-profile/etc/profile.d/nix.sh`.
<aveltras>
piegames: what do you mean by enabling the option for non nixos support ?
<aveltras>
piegames: thanks for your help, been banging my head against this for 2 hours
<aveltras>
it works fine now
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]
aveltras has quit [Quit: Connection closed for inactivity]
joesventek has joined #home-manager
EncodePanda has joined #home-manager
<EncodePanda>
hi, I have a quick question
<EncodePanda>
I've recently have set up my new machine using home-manager and I LOVE it
<EncodePanda>
but :)
<EncodePanda>
when I enter nix-shell of some nix based project (and I don't use --pure) I don't have access to the software that I have configured with home-manager
<EncodePanda>
is there any workaround to that?
<EncodePanda>
I use zsh (default on MacOS Catalina), nix-shell enters Bash - not sure if this is relevant but maybe
<simpson>
It's a little relevant, yes; Darwin's not NixOS, so the remedy might be different.
<simpson>
I'm not a Darwin pro, but I imagine that direnv might smooth over some of this. https://github.com/direnv/direnv/wiki/Nix The idea is that direnv hooks into zsh, nix-shell still runs bash, but direnv takes the exported values from bash and puts them in zsh.
<simpson>
The fact that --pure matters is strange and I don't understand why that would be the case.
<EncodePanda>
I know about direnv, and i use nix-direnv, so thank you simpson for that one - it is the workaround I use for now :)
<EncodePanda>
but sometimes I want to enter nix-shell even to exepriment with some tools
<EncodePanda>
and suddenly missing my command line tools is unpleasent :)
<simpson>
Right. And while I agree with you that it sounds like shell-to-shell frictions, I don't know the solution.
<EncodePanda>
I mean here's the deal. Before home-manager (when installing stuff via nix-env) I was able to have all my tools with me on nix-shell
<EncodePanda>
it's only whith home manager that I'm having issues, but it is all symbolic links at the end of the day, so I wonder what makes it different
<EncodePanda>
but thank you simpson for direnv link, i think more ppl should know about it
<simpson>
No worries. Best of luck.
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Read error: Connection reset by peer]
joesventek has joined #home-manager
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
<__monty__>
EncodePanda: Hmm, I don't think I get that behavior. Maybe you have a bashrc which overrides PATH or something?
<EncodePanda>
I have a fix
<EncodePanda>
from colleague
<EncodePanda>
"I bet it's profile related. I recommend making a shell alias for nix-shell --run zsh anyway, since that's what you want most of the time"
<EncodePanda>
and worked like a charm
<__monty__>
Because afaik even shells should inherit the environment.
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
joesventek has quit [Client Quit]
joesventek has joined #home-manager
kalbasit has joined #home-manager
joesventek has quit [Client Quit]
Slen has joined #home-manager
Slen has quit [Client Quit]
S-len has joined #home-manager
joesventek has joined #home-manager
joesventek has quit [Client Quit]
<S-len>
Quick question, should I put my i3 setup stuff in my OS-wide or home manager config? Is there even any difference between the two on a single user pc?
rajivr has quit [Quit: Connection closed for inactivity]
cole-h has joined #home-manager
superherointj has joined #home-manager
<superherointj>
Hello.
<superherointj>
I have created a Home-Manager module for HexChat and it works but I'm struggling with one thing. Home-manager requires HexChat config file (~/.config/hexchat/hexchat.conf) to be non-existent, which makes sense as protective measure. But the problem is, even if I manually remove the file, on closing HexChat it will save config to it blocking Home-Manager from being able to manage configuration. Any suggestion on how
<superherointj>
I should be dealing with it?
<superherointj>
Home-Manager users that have enabled HexChat configuration actually want Home-Manager to manage the HexChat configuration. Replacing this file is not a big deal. I want to figure out how I should be handling this case.
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
<mtr>
superherointj: I've done this recently for weechat: I had the files managed by HM point to a temporary location, then copied it into the right place using the onChange attr; pretty messy solution but it seems to be working
<superherointj>
mtr, thanks for reporting your experience! I will give it a try.
<superherointj>
And I agree, there should be a better solution than this.
<mtr>
superherointj: there might very well be a nice solution; I'm by no means an authority on this stuff haha
cole-h has quit [Quit: Goodbye]
cole-h has joined #home-manager
<piegames>
S-len: Tough question, with many different opinions. I personally configure as much as possible per user and thus in home-manager. I've seen people do everything in their NixOS config and then create ad-hoc home-manager modules within that config where needed.