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
mexisme has joined #home-manager
chiefgoat has quit [Ping timeout: 240 seconds]
mexisme has quit [Ping timeout: 276 seconds]
__monty__ has joined #home-manager
inkbottle has joined #home-manager
<inkbottle> If you consider Okular; There are the configuration files; There are plenty of files generated by the application but which are not part of the configuration; An lastly there are the files which can be opened by Okular, pdf, ps, djvu, epub...
<inkbottle> So there are 3 groups of file; and home-manager is managing the first group?
<inkbottle> I would like to put a name on the second group
<inkbottle> not only because I never can find them in a delimited time
<infinisil> inkbottle: Ideally it would manage all configuration files yeah, the second group should only be stateful data, like cache files and similar. The third group is the stateful user data it can handle
<infinisil> Maybe the second group can be called "application-generated state" :P
<inkbottle> infinisil: I'm not sure I understand correctly "stateful user data it can handle". home-manager can't keep track of the pdf files I have on my PC
<inkbottle> OK, found the correct reading order.
<inkbottle> Are the configuration files managed by home-manager stored in the usual place like, ~/.config, or are they stored in some other place, out of the way
<inkbottle> Hum, it's in the manual
<infinisil> They're in a nix profile, /nix/var/nix/profiles/per-user/$USER/home-manager-*
<infinisil> And the locations in ~ symlink to that (not directly though)
bsima has quit [Quit: ZNC 1.7.3 - https://znc.in]
bsima has joined #home-manager
mexisme has joined #home-manager
xyz2342anon has joined #home-manager
<xyz2342anon> so dumb question. i'm new to Nix and I installed home-manager out of irrational exuberance. now i'm going through the nix pills series and it appears that home manager conflicts with some of the instructions there.
<xyz2342anon> how do i uninstall home manager for now?
<xyz2342anon> i feel like it's a dumb question because probably Nix is designed to allow this kind of rollback effortlessly :-)
<xyz2342anon> but i'm worried that maybe home manager is doing some kind of magic that i should be aware of...?
<xyz2342anon> btw i'm using NixOS
<__monty__> xyz2342anon: How'd you install HM?
<__monty__> And you can have HM installed without using it btw.
<__monty__> Also, nothing in the Pills is made impossible or magical by HM.
<__monty__> And HM doesn't really have much magic. Just some useful modules and services included.
<xyz2342anon> __monty__, I installed using the instructions on README.md of the repo: https://github.com/rycee/home-manager. specifically nix-shell '<home-manager>' -A install
<xyz2342anon> not impossible, but i've run into a snag that i think is related to HM changing some stuff around.
<xyz2342anon> in pill 11 (https://nixos.org/nixos/nix-pills/garbage-collector.html), it instructs you to install bsdgames with nix-env -iA nixpkgs.bsdgames. this gave me an error. i tried nix-env -qA bsdgames, which resulted in: "home-manager-path"
<xyz2342anon> i'd be happy if anyone had insight into what that specific message means. but while i'm sure that it's a trivial thing, since i'm practically brand new to Nix and NixOS, i figured that i should probably have a vanilla environment anyway.
<__monty__> Looking at the install script I think using nix-env --list-generations, And then nix-env --rollback #nr-of-gen-before-you-installed-HM should be enough. All the install does in addition to that is creating the default home.nix, you can delete that if you want. And you chan remove the home-manager channel using `nix-channel --remove home-manager; nix-channel --update`.
<__monty__> xyz2342anon: Did you install bsdgames using HM?
<__monty__> Pasting the error message would be helpful in determining what the error message means btw : )
<xyz2342anon> __monty__: i don't think so? i wasn't actually able to install bsdgames at all, the original error blocked me.
<xyz2342anon> sure:
<xyz2342anon> $ nix-env -iA nixpkgs.bsdgameserror: attribute 'nixpkgs' in selection path 'nixpkgs.bsdgames' not found$ nix-env -iA bsdgameserror: attribute 'bsdgames' in selection path 'bsdgames' not found$ nix-env -i bsdgameserror: selector 'bsdgames' matches no derivations$ nix-env -i nixpkgs.bsdgameserror: selector 'nixpkgs.bsdgames' matches no derivations$
<xyz2342anon> nix-store -qA bsdgameserror: only one operation may be specifiedTry 'nix-store --help' for more information.$ nix-store -q bsdgameserror: getting status of '/home/ersin/hello/bsdgames': No such file or directory$ nix-store --help$ nix-env -qA bsdgameshome-manager-path
<__monty__> ,pastebin xyz2342anon
<__monty__> ,paste xyz2342anon
<{^_^}> xyz2342anon: Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<xyz2342anon> wow that sucked, formatting fail lol
<xyz2342anon> kk one sec
<xyz2342anon> haven't used IRC in years...slack has me spoiled lol
<__monty__> Glad to have you back. Slack isn't all that.
<xyz2342anon> the first line is the actual instruction from the nix pill
<xyz2342anon> the rest is me trying random stuff to get it to work
<__monty__> Yikes, please use one of the recommended pastebins next time. pastebin.com's had The Ads for years now.
<xyz2342anon> sorry about that
<__monty__> Ok, so the problem is something's wrong with your nix channel.
<__monty__> *nixpkgs channel
<__monty__> Paste nix-channel --list.
<__monty__> That last command is just listing all your installed packages which happens to be just the home-manager-path.
<__monty__> So unistalling HM won't help one bit.
<__monty__> Ah, of course. You're on nixos.
<__monty__> You don't have a user nixpkgs.
<__monty__> Just a system nixpkgs channel.
<xyz2342anon> correct
<xyz2342anon> sudo?
<xyz2342anon> $ sudo nix-channel --list
<xyz2342anon> aha. did i need to install bsdgames with sudo?
<xyz2342anon> but i've setup my configuration.nix to allow my local user to install system packages
<xyz2342anon> or to use the system channel...? or the system-wide environment...? not sure what i'm saying here :-P
<__monty__> Yeah, so that's normal. You'll have to add a nixpkgs channel first before those pills will make sense.
<__monty__> Maybe this changed or maybe the author focused on nix-on-non-nixos.
<xyz2342anon> interesting. but i've been going through all the pills and have made it so far without any problems
<__monty__> You don't have a nixpkgs channel at all.
<__monty__> Maybe you can do `nix-env -iA nixos.bsdgames` though.
<xyz2342anon> boom! that worked
<xyz2342anon> thanks __monty__
<xyz2342anon> so then why did `nix-env -qA bsdgames` result in `home-manager-path`?
<__monty__> I'm not sure why the Nix Pills presuppose the presence of a nixpkgs channel without explaining channels tbh.
<__monty__> nix-env -q without -a will query aka list all installed attributes.
<xyz2342anon> but when i do that, i get the error `error: selector 'bsdgames' matches no derivations`
<xyz2342anon> both with and without sudo
<__monty__> When you do nix-env -q?
<xyz2342anon> same error
<xyz2342anon> (btw i was going for -a, i see that i got confused and used -A instead. looking at the man page now.)
<__monty__> Hmm, weird. I'm not sure why nix-env -q would error. Unless you're passing bsdgames?
<xyz2342anon> ah sorry, you're right, i was. it's now returning `bsd-games-2.17 home-manager-path`
<xyz2342anon> bsd-games is showing up because i just installed it w/ your recommended command
<__monty__> 👍
<xyz2342anon> i see. so basically, `home-manager-path` was showing up because i was querying installed attributes. when i passed bsdgames as in `nix-env -qA bsdgames`, that actually didn't affect the behavior of `nix-env -qA` at all
<__monty__> Replacing "nixpkgs" with "nixos" everywhere should™ let you go through all the pills.
<__monty__> Yeah, I'm not sure why.
<xyz2342anon> seems like it should throw an error if you pass an unsupported/unknown param...
<xyz2342anon> sweet. thanks for your help, __monty__
<__monty__> np
<xyz2342anon> loving the whole Nix ecosystem so far. definitely a steep learning curve but it's all very exciting.
xyz2342anon has quit [Remote host closed the connection]
<__monty__> Not sure what the -A flag to nix-env -q does tbh.
<__monty__> Yes, it's pretty steep. But also rewarding.
<__monty__> It takes a while to get productive tbh. I'm only barely getting there myself.
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #home-manager
mexisme has quit [Ping timeout: 276 seconds]
mexisme has joined #home-manager
__monty__ has quit [Quit: leaving]