ChanServ changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
justanotheruser has quit [Ping timeout: 265 seconds]
justanotheruser has joined #home-manager
zuh0 has joined #home-manager
justanotheruser has quit [Ping timeout: 260 seconds]
justanotheruser has joined #home-manager
<rogerr> how can i set XDG_RUNTIME_DIR in my env on a per user basis? im using home manager fwiw
justanotheruser has quit [Ping timeout: 272 seconds]
<rogerr> i set my XDG_RUNTIME_DIR to ~/.runtime and now when i RDP into the machine i just get black screen forever. what i'm doing wrong pls?
justanotheruser has joined #home-manager
nizhm has quit [Ping timeout: 260 seconds]
nizhm has joined #home-manager
kalbasit has joined #home-manager
kalbasit has quit [Ping timeout: 240 seconds]
stephank has quit [Quit: stephank]
stephank has joined #home-manager
matthewcroughan_ has joined #home-manager
<matthewcroughan_> Hey, I can't get the manual for home-manager.nix
<matthewcroughan[> Lmao I cannot believe this is the same room as it is on freenode, and I was here the entire time.
<matthewcroughan[> This room isn't very active :(
cole-h has quit [Ping timeout: 240 seconds]
Belieffresh has joined #home-manager
Belieffresh has quit [K-Lined]
<rycee> rogerr: To set XDG_RUNTIME_DIR I think you'll have to tweak either PAM or systemd.
<rycee> matthewcroughan_: There is no manual page named "home-manager.nix". There is "home-manager" and "home-configuration.nix", though.
<matthewcroughan_> rycee: sorry, I did mean the latter
<matthewcroughan_> "no manual entry for 'home-configuration.nix'
<matthewcroughan[> Yknow, I have matrix setup, I'm gonna use it here lol.
<matthewcroughan[> it's interesting that the bridge has my name as `matthewcroughan[`
<matthewcroughan[> name must be too long for it :)
<rycee> Right :-)
<rycee> Maybe you have `manual.manpages.enable = false` somewhere in your configuration?
<matthewcroughan[> I do not rycee https://github.com/matthewcroughan/nixcfg/
<rycee> Is the file in the output of `home-manager build`?
<matthewcroughan[> whenever I do `nix-env --help` or any other `nix` command that has a manpage, I also get `nroff not found` lol
<matthewcroughan[> so maybe something is just completely wrong with my home-manager user
<matthewcroughan[> `home-manager` is not available, I'm using this as a flake, though I must admit that I do not know what that really means.
<matthewcroughan[> <matthewcroughan[ "whenever I do `nix-env --help` o"> I mean as my home-managed user, doing these same commands as `root` works fine.
<rycee> Are you not using NixOS?
<matthewcroughan[> I am using NixOS.
<rycee> There might be something wrong in how your shell sources `/etc/profile`?
<rycee> I haven't seen that error before but I don't think it is likely that HM is involved in the cause.
<matthewcroughan[> my shell is not configured in any special way by anything
<matthewcroughan[> how can I tell the difference between root and why it works whereas my user does not?
<matthewcroughan[> * how can I tell the difference between root and why it works whereas my home-managed user does not?
<rycee> Not sure, I can imagine using strace to check which files `man home-configuration.nix` tries to open.
<matthewcroughan[> anything wrong with that? Should I not be using `initExtra`?
<rycee> Then at least it should be apparent where it thinks the man pages are.
<rycee> And you can compare with where they actually are.
<matthewcroughan[> ah that's amazing!
<rycee> Shouldn't be a problem setting `initExtra`, as long as it doesn't mess too much with PATH and such.
<matthewcroughan[> this sort athing
<matthewcroughan[> * this sorta thing
<matthewcroughan[> ```
<matthewcroughan[> `stat("/etc/busybox.conf", 0x7ffd8c55bfd8) = -1 ENOENT (No such file or directory)`
<matthewcroughan[> man, it looks like it knows absolutely nothing about nothing :D
<rycee> Hmm, what does `readlink -m $(which man)` say?
<matthewcroughan[> readlink doesn't have the -m option here
<matthewcroughan[> busybox
<matthewcroughan[> found the issue I guess 🙃
<rycee> Hmm, are you intentionally using busybox instead of the regular issues?
<matthewcroughan[> nope
<matthewcroughan[> I had no idea
<matthewcroughan[> it's in my `nix-env` for some reason, maybe this is a blog post about how you shouldn't use `nix-env` under any circumstances ever.
<rycee> Yeah, then I imagine you are using busybox's version of the `man` command, which I don't think have been patched to know about the Nix paths.
<matthewcroughan[> My usual excuse is "I only need it now, for a moment", which is almost always BS and a lie, and it ends up sticking around.
<matthewcroughan[> `nix-env` should not exist, instead only `nix-build` and `nix-shell` should exist :D
<rycee> Yeah, best avoid `nix-env -i` as much as possible :-)
<matthewcroughan[> what is incredible is that anything works at all, because of this
<matthewcroughan[> what does this do?
<matthewcroughan[> Can't really get it to work, just spits out an error :D
<rycee> I don't think you want that option.
<matthewcroughan[> It's written to imply that it's better than just -e '.*'
<matthewcroughan[> * It's written to imply that it's better than just `-e '.*'`
<rycee> HM installs the generated Nix profile with `nix-env -i` and you probably don't want to uninstall that.
<matthewcroughan[> And voila, everything works after removing busybox, magic.
<rycee> I.e., `nix-env -q` should include `home-manager-path`.
<matthewcroughan[> I ran `nix-env -e '.*'`, was that bad?
<matthewcroughan[> I don't see anything being uninstalled that I have given home-manager to install.
<rycee> You won't have access to packages installed through `home.packages`.
<matthewcroughan[> really? yikes :v
<rycee> Then you are probably using `useUserPackages`.
<matthewcroughan[> no, I do still have access to those packages
<matthewcroughan[> nothing has went wrong
<rycee> In that case HM will not use `nix-env -i`.
<rycee> Cool, then all should be good :-)
niacdoial has joined #home-manager
<rogerr> rycee++ ty. why so hard to change xdg runtime dir? the other xdg dirs are super easy to change
<{^_^}> rycee's karma got increased to 35
<rycee> rogerr: I believe systemd needs that directory for its socket, same with dbus. These start very early in the login process, before the shell is started.
<matthewcroughan[> rycee++
<{^_^}> rycee's karma got increased to 36
<matthewcroughan[> * rycee++ ty.
<{^_^}> rycee's karma got increased to 37
<matthewcroughan[> oh well whatever, guess the bot was slow lmfao
<matthewcroughan[> double thank you :)
<rogerr> ahh
niacdoial has quit [Ping timeout: 260 seconds]
niacdoial has joined #home-manager
greizgh has quit [Quit: greizgh]
greizgh has joined #home-manager
__monty__ has joined #home-manager
niacdoial has quit [Ping timeout: 272 seconds]
niacdoial has joined #home-manager
niacdoial has quit [Ping timeout: 260 seconds]
niacdoial has joined #home-manager
cole-h has joined #home-manager
Belieffresh has joined #home-manager
Belieffresh has quit [K-Lined]
niacdoial has quit [Ping timeout: 240 seconds]
quinn has quit [*.net *.split]
pinpox has quit [*.net *.split]
pinpox has joined #home-manager
quinn has joined #home-manager
iwq has quit [Ping timeout: 264 seconds]
iwq has joined #home-manager
niacdoial has joined #home-manager
niacdoial has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
justanotheruser has joined #home-manager
__monty__ has quit [Quit: leaving]