infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #home-manager
<Gopal-M>
I do this and I think you can get away without needing `home-manager switch` but it's also possible to have `home-manager switch` if you install `home-manager` with `nix-shell '<home-manager>' -A install` but you will need to do it everytime you do `nixos-rebuild switch`.
<Gopal-M>
I'm not sure why `home-manager` goes out of $PATH but it does. I've asked before and I'm yet to get an answer.
<infinisil>
leira: You need to use nixos-rebuild switch then
<leira>
Is there a need to delete the old home-manager generations then? Or is there such thing anymore?
<infinisil>
leira: There are both home-manager profiles and nixos profiles still, but to roll back permanents you need to use the nixos ones
<infinisil>
permanently*
<infinisil>
Hm, you can delete them yeah, I've never done it myself, but it might be a good idea
<infinisil>
leira: In general, profiles are stored in /nix/var/nix/profiles, and you can delete them like `nix-env -p /nix/var/nix/profiles/<name> --delete-generations {50..60}`
<infinisil>
Or just deleting the files works too I'm pretty sure
<infinisil>
Gopal-M: What do you mean by "why `home-manager` goes out of $PATH"?
<Gopal-M>
Umm, everytime I do `sudo nixos-rebuild switch`, I have to install home-manager again
<Gopal-M>
that's a minor inconvenience but after I install `home-manager`, it seems to remember all the generations
<leira>
Hmm, let's say, I use `home-manager.user.leira = {...}` in configuration.nix, and stick with `nixos-rebuild switch` every time I change the home-manager part of configuration, never run home-manager command. Will there be home-manager profiles created? Or there are only system profiles?
<Gopal-M>
I was wondering if I could workaround that
<Gopal-M>
<leira "Hmm, let's say, I use `home-mana"> I would like to know this as well.
<infinisil>
leira: Both will be created
<infinisil>
Gopal-M: What's the problem if you don't reinstall it?
<Gopal-M>
I can't do `home-manager switch` anymore
<leira>
OK~ Then if I `nix-collect-garbage --d`, I suppose the old system profiles will be deleted, what about the old home-manager profiles?
<infinisil>
Gopal-M: What's the error?
<Gopal-M>
command not found
<infinisil>
leira: Ah yeah I forgot about that, nix-collect-garbage deletes all old nix profiles, including system ones and home-manager ones
<Gopal-M>
I mean, it's okay for me as I have sudo access and I can always rely on `sudo nixos-rebuild switch` but not so much for other users on my server who don't
<infinisil>
Probably best to use that to clean up
<infinisil>
Gopal-M: And how do you install home-manager to get it working again?
<leira>
that explained a lot! thanks infinisil
<Gopal-M>
`
<Gopal-M>
``
<infinisil>
leira: Note that you might not want to use -d, but --delete-older-than instead
<Gopal-M>
`nix-shell '<home-manager>' -A install`
<leira>
yeah, that was the one I normal use~
<infinisil>
Gopal-M: I see, yeah the default home-manager activation phase uninstalls home-manager, that might be an oversight that should be fixed
<Gopal-M>
for some reason, `nix-env -iA nixos.home-manager` gives me an error
<infinisil>
Gopal-M: But you should be able to put `home-manager` in your systemPackages
<Gopal-M>
oh right
<Gopal-M>
why didn't I think of that, lol
<infinisil>
:)
<Gopal-M>
thanks, man. that was really helpful
<infinisil>
Np
<Gopal-M>
I took a look at your system repo a few months back and got inspired, haha
<Gopal-M>
made my own
<infinisil>
Hehe neat
<infinisil>
Mine is really messy though, I've been meaning to clean up forever
<Gopal-M>
have you considered using org mode to do that?
<Gopal-M>
I use org mode for write pretty much everything now
<infinisil>
Gopal-M: For writing .. Nix?
<Gopal-M>
yup
<infinisil>
No idea how that would help, my config is 99% Nix
<Gopal-M>
I mean, mine is also not well documented right now because i've been lazy but it's pretty easy to explain what a piece of source code does when you all code is embedded source code blocks with an explanation preceeding it
<infinisil>
Ah wow, I didn't know about :tangle
<infinisil>
Neat
<Gopal-M>
(gitlab has really poor org mode support tho)
<infinisil>
Is there any online viewer that does?
<infinisil>
GitHub's also isn't very great I think
<Gopal-M>
GitHub is far better at it though
<Gopal-M>
I've been thinking of exporting it to a reveal.js presentation and just hosting it on my site
<Gopal-M>
because I tried exporting to both HTML and markdown and that caused all sorts of formatting problems with gitlab
<infinisil>
Gopal-M: What's the point of exporting your configuration though?
<infinisil>
I've never needed that
<Gopal-M>
No, I mean, to make the readme file more readable
<Gopal-M>
right now it look svery raw
<Gopal-M>
right now it looks very raw because of gitlab
sgraf_ has joined #home-manager
benkolera_ has joined #home-manager
klntsky has quit [*.net *.split]
benkolera has quit [*.net *.split]
philipp[m] has quit [*.net *.split]
sgraf has quit [*.net *.split]
sgraf_ is now known as sgraf
benkolera_ is now known as benkolera
philipp[m] has joined #home-manager
leira has quit [Ping timeout: 260 seconds]
judson__ has quit [Remote host closed the connection]
judson__ has joined #home-manager
judson__ has quit [Remote host closed the connection]
judson__ has joined #home-manager
klntsky has joined #home-manager
Synthetica has joined #home-manager
klntsky has quit [Remote host closed the connection]
klntsky has joined #home-manager
judson_ has joined #home-manager
judson__ has quit [Remote host closed the connection]