boxscape has quit [Remote host closed the connection]
boxscape has joined #home-manager
boxscape has quit [Remote host closed the connection]
boxscape has joined #home-manager
mexisme has quit [Ping timeout: 246 seconds]
boxscape62 has joined #home-manager
boxscape has quit [Disconnected by services]
boxscape62 is now known as boxscape
<cole-h>
Anybody here know if it's possible to declaratively link from `~/.nix-profile`?
<cole-h>
My use case is that I have a few font packages installed and want to link them all into my `~/.local/share/fonts` directory without using `xdg.dataFile."fonts/..."` for every single font
Emantor has joined #home-manager
kyren has joined #home-manager
<immae>
cole-h: would home.activation scripts solve your issue? You can put whatever commands you like here
__monty__ has joined #home-manager
c0c0 has joined #home-manager
cole-h has quit [Ping timeout: 268 seconds]
malSet has quit [Ping timeout: 246 seconds]
malSet has joined #home-manager
boxscape has quit [Remote host closed the connection]
<cole-h>
immae: (sorry, I missed that yesterday) Seems to do the job. I just need to be mindful about cleaning up the symlinks I make. Thanks!
hpfr[m] has quit [Ping timeout: 246 seconds]
Dandellion has quit [Ping timeout: 246 seconds]
Max[m]4 has quit [Ping timeout: 246 seconds]
jschievink has quit [Ping timeout: 240 seconds]
maralorn[m] has quit [Ping timeout: 245 seconds]
Notkea[m] has quit [Ping timeout: 256 seconds]
jonge[m] has quit [Ping timeout: 256 seconds]
dtz has quit [Ping timeout: 240 seconds]
aterius has quit [Ping timeout: 260 seconds]
philipp[m] has quit [Ping timeout: 260 seconds]
rycee has quit [Ping timeout: 245 seconds]
schmittlauch[m] has quit [Ping timeout: 248 seconds]
<immae>
cole-h: I don't know if you can access the previous generation to find differences, but at worse you can find dangling symlinks and remove them in the script :p
<cole-h>
Linking is relatively cheap, and `fc-cache` knows they are already cached so all's well that ends well
hpfr[m] has joined #home-manager
Dandellion has joined #home-manager
jschievink has joined #home-manager
simbergm has joined #home-manager
jonge[m] has joined #home-manager
Notkea[m] has joined #home-manager
Max[m]4 has joined #home-manager
schmittlauch[m] has joined #home-manager
ZerataX has joined #home-manager
tbenst[m] has joined #home-manager
alexarice[m] has joined #home-manager
maralorn[m] has joined #home-manager
philipp[m] has joined #home-manager
rycee has joined #home-manager
Jarva[m] has joined #home-manager
aterius has joined #home-manager
boxscape has quit [Remote host closed the connection]
claudiii has quit [Quit: Connection closed for inactivity]
simbergm has quit [Quit: killed]
jonge[m] has quit [Quit: killed]
philipp[m] has quit [Quit: killed]
hpfr[m] has quit [Quit: killed]
Dandellion has quit [Quit: killed]
aterius has quit [Quit: killed]
schmittlauch[m] has quit [Quit: killed]
Notkea[m] has quit [Quit: killed]
ZerataX has quit [Quit: killed]
rycee has quit [Quit: killed]
maralorn[m] has quit [Quit: killed]
tbenst[m] has quit [Quit: killed]
Jarva[m] has quit [Quit: killed]
Max[m]4 has quit [Quit: killed]
jschievink has quit [Quit: killed]
alexarice[m] has quit [Quit: killed]
claudiii has joined #home-manager
mexisme has joined #home-manager
tbenst[m] has joined #home-manager
mexisme has quit [Ping timeout: 260 seconds]
{^_^} has quit [Excess Flood]
{^_^} has joined #home-manager
mexisme has joined #home-manager
<cole-h>
Just curious: is there any reason why a `--rollback` flag isn't included?
<cole-h>
I just spent a few minutes hacking on the script and got it to work (for fun), so I was wondering why this doesn't "explicitly support rollbacks".
philipp[m] has joined #home-manager
alexarice[m] has joined #home-manager
ZerataX has joined #home-manager
jschievink has joined #home-manager
Ericson2314 has joined #home-manager
simbergm has joined #home-manager
Notkea[m] has joined #home-manager
hpfr[m] has joined #home-manager
jonge[m] has joined #home-manager
Jarva[m] has joined #home-manager
rycee has joined #home-manager
dtz has joined #home-manager
schmittlauch[m] has joined #home-manager
aterius has joined #home-manager
Dandellion has joined #home-manager
maralorn[m] has joined #home-manager
Max[m]4 has joined #home-manager
mexisme has quit [Ping timeout: 272 seconds]
mexisme has joined #home-manager
mexisme has quit [Ping timeout: 240 seconds]
mexisme has joined #home-manager
<rycee>
cole-h: Mainly because nobody has worked on it. I almost never do rollbacks so haven't felt particularly motivated :-)
johnw has joined #home-manager
<__monty__>
Does nix-env --rollback suffice?
<rycee>
No, need to run the activation script as well.
<rycee>
Actually, generally it should be enough to run the activation script. Running nix-env --rollback shouldn't be needed and I think the HM activation script would get confused if you do a nix-env --rollback first.
<cole-h>
I don't do rollbacks that often either (really only when I was first starting out), but it's so easy to implement! I think I'll send a PR with what I have when I get home. I'm not a bash master, though, so I'm sure there're many things to be improved upon
__monty__ has quit [Quit: leaving]
mexisme has quit [Ping timeout: 240 seconds]
claudiii has quit [Quit: Connection closed for inactivity]