cjpbirkbeck has quit [Remote host closed the connection]
cole-h has quit [Quit: Goodbye]
maxsc has joined #home-manager
maxsc has quit [Remote host closed the connection]
dermetfan has joined #home-manager
asymptotically has joined #home-manager
asymptotically has quit [Quit: Leaving]
dermetfan has quit [Ping timeout: 244 seconds]
dermetfan has joined #home-manager
pbogdan has joined #home-manager
__monty__ has joined #home-manager
tmplt has joined #home-manager
tmplt has quit [Client Quit]
freeman42x[m] has quit [*.net *.split]
Ericson2314 has quit [*.net *.split]
klntsky has quit [*.net *.split]
hpfr[m] has quit [*.net *.split]
aterius1 has quit [*.net *.split]
freeman42x[m] has joined #home-manager
Ericson2314 has joined #home-manager
aterius1 has joined #home-manager
hpfr[m] has joined #home-manager
klntsky has joined #home-manager
Ericson2314 has quit [Max SendQ exceeded]
freeman42x[m] has quit [Max SendQ exceeded]
hpfr[m] has quit [Max SendQ exceeded]
nicolas[m]2 has quit [Ping timeout: 240 seconds]
JJJollyjim has quit [Ping timeout: 246 seconds]
dash has quit [Ping timeout: 246 seconds]
epic_guy[m] has quit [Ping timeout: 246 seconds]
allisonf has quit [Ping timeout: 260 seconds]
sparogy has quit [Ping timeout: 240 seconds]
ohhaimark[m] has quit [Ping timeout: 240 seconds]
aterius1 has quit [Ping timeout: 244 seconds]
Dandellion has quit [Ping timeout: 246 seconds]
colemickens has quit [Ping timeout: 246 seconds]
Notkea[m] has quit [Ping timeout: 240 seconds]
ZerataX has quit [Ping timeout: 246 seconds]
NobbZ[m] has quit [Ping timeout: 246 seconds]
siraben has quit [Ping timeout: 246 seconds]
maralorn has quit [Ping timeout: 246 seconds]
Philipp[m]1 has quit [Ping timeout: 246 seconds]
rycee has quit [Ping timeout: 256 seconds]
spinlock[m] has quit [Ping timeout: 256 seconds]
AsbjrnOlling[m] has quit [Ping timeout: 244 seconds]
alexarice[m]1 has quit [Ping timeout: 260 seconds]
enick_846 has quit [Ping timeout: 260 seconds]
cjpbirkbeck has joined #home-manager
KarlJoad has joined #home-manager
<KarlJoad>
How do I add to my user $PATH variable using home-manager? I would like to get Rust's Cargo to play nice.
cjpbirkbeck has quit [Quit: cjpbirkbeck]
cjpbirkbeck has joined #home-manager
KarlJoad has quit [Quit: Konversation terminated!]
cole-h has joined #home-manager
KarlJoad has joined #home-manager
<KarlJoad>
How do I add to my user $PATH variable using home-manager? I would like to get Rust's Cargo to play nice.
<simpson>
KarlJoad: home.sessionVariables, I think. Not sure though.
<cole-h>
Just be careful about not overwriting your PATH and only appending to it.
dash has joined #home-manager
ZerataX has joined #home-manager
philipp[m] has joined #home-manager
Dandellion has joined #home-manager
JJJollyjim has joined #home-manager
NobbZ[m] has joined #home-manager
Ericson2314 has joined #home-manager
benkolera has joined #home-manager
rycee has joined #home-manager
siraben has joined #home-manager
jschievink has joined #home-manager
aterius has joined #home-manager
Ox4A6F has joined #home-manager
hpfr[m] has joined #home-manager
freeman42x[m] has joined #home-manager
Notkea[m] has joined #home-manager
colemickens has joined #home-manager
jonge[m] has joined #home-manager
maralorn has joined #home-manager
ohhaimark[m] has joined #home-manager
DamienCassou has joined #home-manager
spinlock[m] has joined #home-manager
bpye has joined #home-manager
AsbjrnOlling[m] has joined #home-manager
epic_guy[m] has joined #home-manager
alexarice[m] has joined #home-manager
sparogy has joined #home-manager
allisonf has joined #home-manager
enick_919 has joined #home-manager
nicolas[m] has joined #home-manager
JJJollyjim is now known as Guest42512
<KarlJoad>
@simpson: That's what I was thinking, but the manual states: "Note, these variables may be set in any order so no session variable may have a runtime dependency on another session variable. If you need to reference another session variable, then do so inside Nix instead."
<KarlJoad>
Does that mean I would say PATH = "$PATH:~/.cargo", because PATH is set by the environment itself?
<simpson>
Hm, that's a good question, and cole-h is right to point it out. I don't know.
<KarlJoad>
@cole-h: What are your thoughts on this matter?
<cole-h>
I would instead do `home.sessionVariables = [ PATH = "~/.cargo/bin\${PATH:+:$PATH}"; ];`
<cole-h>
If PATH is ever unset (for whatever reason), it will still function properly
<cole-h>
If you just did `$PATH:~/.cargo/bin`, if PATH is ever unset or empty, things will break.
<__monty__>
Yeah, the $PWD would be part of $PATH from then on.
<KarlJoad>
Yeah, that was the problem with that implementation, I just wanted a simple thing to illustrate the point. But, shouldn't it be `home.sessionVariables = { PATH = "~/.cargo/bin\${PATH:+:$PATH}"; }; ?
<__monty__>
Seems likely.
<KarlJoad>
The type of home.sessionVariables is given in the manual as: "Type: attribute set"
<cole-h>
Yeah, sorry.
<cole-h>
I forget it's an attrset and not a list
<KarlJoad>
Ok, cool. Thanks.
<cole-h>
*always forget
sheeldotme has joined #home-manager
epic_guy[m] has quit [Quit: Idle for 30+ days]
bpye has quit [Quit: Idle for 30+ days]
sheeldotme has quit [Read error: Connection reset by peer]
<NobbZ[m]>
If HM gets installed as a module and the user config is managed through `configuration.nix`, should the user be able to call `home-manager` executable then?
<energizer>
i am wondering about that too
<rycee>
NobbZ: No, home-manager is intended for standalone use.
<rycee>
It would make sense to install a similar tool with reduced capabilities, though.
<NobbZ[m]>
You should add that to the docs… Someone in the discord is thinking their installation is broken because of that
<energizer>
someone asks that about once a week in here :)
<energizer>
what's the recommended way for non-root users to use hm on nixos?
<energizer>
non-sudoer, really
<NobbZ[m]>
Standalone installation
<cole-h>
rycee: Is there a way to see news with the NixOS module?
<{^_^}>
#1294 (by meck, 2 weeks ago, closed): newsfeed when using nixos module
<rycee>
It includes a basic script to do that.
<cole-h>
Ah, cheers.
__monty__ has quit [Quit: leaving]
KarlJoad has quit [Quit: Konversation terminated!]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
sheeldotme has joined #home-manager
<sheeldotme>
I'm trying to add the mozilla overlay to my home-manager configuration but it results in infinite recursion. Does anyone have any suggestions?