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
Shados_ has joined #home-manager
Shados has quit [Ping timeout: 260 seconds]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 265 seconds]
cole-h has quit [Quit: Goodbye]
<pinpox-> Hi, just wondering, how do you prefer to use home-manager on NixOS? I'm unsure whether I should run it from my configuration.nix or run in manually from my user account
<pinpox-> I'd like to allow users on my system to modify/switch generation their personal dotfiles without allowing them to do system-wide settings
<NobbZ[m]> I prefer to have them separate. That still allows me to keep system config small, while the home-manager config is transferable and reusable across different hosts.
<NobbZ[m]> Then it is a strict requirement to use stand-alone.
<pinpox-> NobbZ[m]: So you can install your dotfiles without root privileges?
<pinpox-> NobbZ[m]: Where do you put your home-manager config and how/when do you run it?
<NobbZ[m]> As long as the user is in allowed users, they can just do anything with nix, except for switching the system generation, as that requires root access.
<NobbZ[m]> I have it at `~/.config/nixpkgs/home.nix`, as documented for a standalone, and of course I rebuild when I change something
<pinpox-> Would you mind sharing your config?
pinpox has joined #home-manager
pinpox- has quit [Ping timeout: 256 seconds]
<pinpox> Got reconnected
liff has quit [*.net *.split]
alexbakker has quit [*.net *.split]
tristan[m] has quit [*.net *.split]
spinlock[m] has quit [*.net *.split]
M0-[m] has quit [*.net *.split]
mog has quit [*.net *.split]
<pinpox> NobbZ[m]:
<NobbZ[m]> Sorry, was stuck in traffic
<pinpox> NobbZ[m]: Thank you
<NobbZ[m]> I do not have my system configuration public though, as it contains sensible data.
<pinpox> I think I have the system part in a decent state, shouldn't be much left after taking out the home-manager stuff from there
<pinpox> How do you decide what programs to install in your configuration.nix and what programs should be installed via home-manager for the users?
<NobbZ[m]> Tools you require to be available as root or depend on some system level configuration, or services that are not bound to a user should go into system configuration, everything a user likes to have, belongs in their user configuration.
<pinpox> Ok, what about something like xserver and i3?
<pinpox> Guess not every user needs the same window manager, some might not even require X. Should I put that in home-manager then?
<NobbZ[m]> Xserver is system, you wouldn't be able to run a DM without it. Then there should be at least one WM available as default. Then each user can use home-manager to install whatever WM they want in whatever version they want.
<pinpox> NobbZ[m]: I see, that makes sense
tyxie has joined #home-manager
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 246 seconds]
__monty__ has joined #home-manager
mog has joined #home-manager
spinlock[m] has joined #home-manager
M0-[m] has joined #home-manager
alexbakker has joined #home-manager
tristan[m] has joined #home-manager
liff has joined #home-manager
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [*.net *.split]
liff has quit [*.net *.split]
alexbakker has quit [*.net *.split]
tristan[m] has quit [*.net *.split]
spinlock[m] has quit [*.net *.split]
M0-[m] has quit [*.net *.split]
mog has quit [*.net *.split]
spinlock[m] has joined #home-manager
mog has joined #home-manager
M0-[m] has joined #home-manager
alexbakker has joined #home-manager
tristan[m] has joined #home-manager
liff has joined #home-manager
o1lo01ol1o has joined #home-manager
<Jezhehim[m]> I was wondering about this the other day: should I be able to install a WM or Wayland compositor with home-manager and then select it as an option from my DM when logging in?
superherointj has joined #home-manager
tyxie has quit [Remote host closed the connection]
ihsan has joined #home-manager
<ihsan> Hi, does anyone have a tip to debug this "error: value is a X while a Y was expected, at ..."
<NobbZ[m]> Depends on what X and Y actually are… Usually its looking at the marked position and then hunting down code where that value gets defined, or reading docs about that value. Maybe go up the call chain when the value is created by function calls
<ihsan> It is really time consuming, because the error points to complicated source codes. If I try to --show-trace and go to the files that the error points, I end up finding myself in `/nix/store/...-nixos-20.09beta538.0cfe5377e89/nixos/lib/modules.nix:323`. So that was not helpful for me. I did resolved this error once by commenting out the chunks of my
<ihsan> configuration code and digging into commented files.
<ihsan> I am trying to find an easier way.
<NobbZ[m]> Use git to manage your config and commit working configs as soon as possible, when you have something that doesn't work, look at the diff and inspect the changed parts.
<ihsan> Right, thank you for the suggestion!
<eyJhb> Yeah, NixOS might be able to rollback, but that does not include your config.
<ihsan> Oh, I've just searched through the output that produced with --show-trace argument, I've seen some attributes from my configuration. I didn't realize this before that there are attributes from my configuration in the output. I've just searched those phrases through my configuration with ripgrep, fixed and solved the issue. Thanks again.
spinlock[m] has left #home-manager ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
ihsan has quit [Remote host closed the connection]
cole-h has joined #home-manager
hax404 has quit [Remote host closed the connection]
hax404 has joined #home-manager
hax404 has quit [Remote host closed the connection]
hax404 has joined #home-manager
<pinpox> Hi, quick question on zsh plugins: how can I load them from github without a hash? This is what I am trying: https://gist.github.com/pinpox/a379e7d230204da3a6f1da1c311dd04e
<pinpox> I get no errors, but I still have no syntax highlighting
o1lo01ol1o has quit [*.net *.split]
liff has quit [*.net *.split]
alexbakker has quit [*.net *.split]
tristan[m] has quit [*.net *.split]
M0-[m] has quit [*.net *.split]
mog has quit [*.net *.split]
<NobbZ[m]> You might need to specify `file` that zsh knows what to source.
<NobbZ[m]> Though that file is not a valid nix-expression at all.
alexbakker has joined #home-manager
tristan[m] has joined #home-manager
liff has joined #home-manager
o1lo01ol1o has joined #home-manager
mog has joined #home-manager
M0-[m] has joined #home-manager
<NobbZ[m]> pinpox: 👆️
<pinpox> NobbZ[m]: That is only the relevant snippet
<pinpox> NobbZ[m]: Just noticed some other plugins work just fine, so you might be right in that I need to specify a file. Do I have to do anything special for plugins providing a prompt? Specificall: https://github.com/sindresorhus/pure
<NobbZ[m]> I use p10k, and I just specified it as a plugin. as you can see here: https://gitlab.com/NobbZ/nix-home-manager-dotfiles/-/blob/master/profiles/base/default.nix#L79-83
<pinpox> NobbZ[m]: Hm, do I need to do that fpath+=... and autoload -U... stuff manually from the README?
<pinpox> NobbZ[m]: Nevermind, I figured it out: I had programs.starship.enable set to true, which was overriding the prompt
<pinpox> p10k always was kind of slow on my machine, has it gotten better? also there seems to be a powerline-go option directly in home-manager
<pinpox> NobbZ[m]: Related question, do you know how to disable the right side prompt? Even though I'm using the pure prompt now, it's still showing (pure has no right side prompt part)
o1lo01ol_ has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 244 seconds]
superherointj has quit [Quit: Leaving]
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 258 seconds]
cole-h has quit [Quit: Goodbye]
cole-h has joined #home-manager
__monty__ has quit [Quit: leaving]
liff has quit [*.net *.split]
tristan[m] has quit [*.net *.split]
alexbakker has quit [*.net *.split]
M0-[m] has quit [*.net *.split]
mog has quit [*.net *.split]