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
mexisme_ has quit [Ping timeout: 246 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
<hpfr[m]> hi! I'm trying to modularize my sxhkd config into home-manager, but it can't grab my environment variables for some reason. for example `"super + e" = "$EDITOR";` doesn't do anything
Emantor has joined #home-manager
<cole-h> Have you tried `systemctl import-environment`?
<hpfr[m]> no. how would that help? seems imperative, and sxhkd.service is owned by my user
<hpfr[m]> cole-h: `Failed to import environment: Access denied`
<hpfr[m]> with `systemctl --user import-environment`, I get `Failed to import environment: Invalid environment assignments`
<NemesisD> has anyone had any success using home-manager to set up zsh and oh-my-zsh? my config is building but the theme doesn't actually apply
boxscape has quit [Ping timeout: 240 seconds]
<evanjs> Mine works
<evanjs> Can’t remember if I’m using hm or NixOS, though 🤷‍♂️
<evanjs> Am tired but here is main repo — https://github.com/evanjs/nixos_cfg
<evanjs> NemesisD: ☝️
<NemesisD> i figured it out :)
<evanjs> 👍 I know I’ve had issues with Zsh features acting strange at times, both on hm and NixOS
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #home-manager
cole-h has quit [Ping timeout: 255 seconds]
klntsky has quit [Remote host closed the connection]
klntsky has joined #home-manager
<rycee> hpfr (@hpfr:matrix.org): There is an open ticket for that. It seems sxhkd is best run directly from `.xsession` and not as a systemd service.
__monty__ has joined #home-manager
<mmatthieu> NemesisD: Yes. You can check my conf here : https://gitlab.com/mmequignon/nixos-config/-/blob/master/matthieu/zsh.nix
__monty__ has quit [Quit: BRB irc config troubles.]
mexisme_ has joined #home-manager
__monty__ has joined #home-manager
mexisme_ has quit [Ping timeout: 240 seconds]
malSet has quit [Ping timeout: 260 seconds]
malSet has joined #home-manager
mexisme_ has joined #home-manager
<philipp[m]> Very cool that there is now a sway module! How do I properly make use of it?
<philipp[m]> So I just enable it and my diplaymanager launches sway? Is there something like `xsession` for wayland?
mexisme_ has quit [Ping timeout: 272 seconds]
<philipp[m]> Ah! I think the answer is in `wayland.windowManager.sway.systemdIntegration`.
<mmatthieu> I think you just need to add `programs.sway.enable = true;` in your `/etc/nixos/configuration.nix` and to select it in your wm.
<mmatthieu> And btw, you could refer to this https://nixos.wiki/wiki/Sway
<mmatthieu> Oops, havent seen there was a sway module in home-manager, sorry for the noise.
W1lkins has quit [Quit: Bye]
malSet has quit [Ping timeout: 255 seconds]
malSet has joined #home-manager
malSet has quit [Ping timeout: 260 seconds]
malSet has joined #home-manager
malSet has quit [Ping timeout: 255 seconds]
<mmatthieu> Hi rycee : I installed home-manager as a module, how could I use choose my fork, to make some tests ?
malSet has joined #home-manager
malSet has quit [Ping timeout: 260 seconds]
<rycee> MmeQuignon: Hmm, `imports = [ ~/path/to/hm/nixos ];`
<mmatthieu> In /etc/nixos/configuration.nix ?
<rycee> Yeah.
<mmatthieu> Ok, thank you ^^
<rycee> To replace the way you now import HM into `configuration.nix`.
malSet has joined #home-manager
<mmatthieu> Nice :)
mexisme_ has joined #home-manager
mexisme_ has quit [Ping timeout: 246 seconds]
cole-h has joined #home-manager
mexisme_ has joined #home-manager
mexisme_ has quit [Ping timeout: 272 seconds]
judson_ has quit [Remote host closed the connection]
judson_ has joined #home-manager
judson_ has quit [Ping timeout: 256 seconds]
mexisme_ has joined #home-manager
mexisme_ has quit [Ping timeout: 256 seconds]
boxscape has joined #home-manager
mexisme_ has joined #home-manager
dtz11 has joined #home-manager
<rycee> "Type: attribute set of boolean or signed integer or string or list of boolean or signed integer or string or attribute set of boolean or signed integer or stringss or attribute set of boolean or signed integer or string or list of boolean or signed integer or string or attribute set of boolean or signed integer or stringss or attribute set of boolean or signed integer or string or list of boolean or signed integer or
<rycee> string or attribute set of boolean or signed integer or stringsssss" 👍
<cole-h> LOL
<cole-h> Where does that come from?
<rycee> I just switched the type of `programs.starship.settings` from `types.attrs` to a more suitable `types.attrsOf …` type.
<rycee> I changed the type description to "Starship configuration" :-)
<cole-h> Frankly, that's hilarious
mexisme_ has quit [Ping timeout: 272 seconds]
<Dandellion> What do you think about exposing something like `pkgs.firefox.override.extraNativeMessagingHosts` to HM? it would place a manifest in `$HOME/.mozilla/native-messaging-hosts` instead of needing to do `programs.firefox.package = pkgs.firefox.override {extraNativeMessagingHosts = [pkgs.someNMH];}`
<Dandellion> ie. `programs.firefox.extraNativeMessagingHosts = [pkgs.someNMH];`
<hpfr[m]> rycee: is there a way for me to declare the sxhkdrc config via home-manager without finally enabling the service?
<rycee> Dandellion: Ah, didn't know `extraNativeMessagingHosts` had been added. Yes, it could be added.
<rycee> hpfr: Maybe the easiest is to add something like `systemd.user.services.sxhkd.Service.ExecStart = mkForce "${pkgs.coreutils}/bin/true"`.
hax404 has quit [Quit: WeeChat 2.7.1]
<hpfr[m]> rycee: hah that’s interesting
<hpfr[m]> There’s no better way to get into the module and override something
<hpfr[m]> Instead of mkForce to true haha
<rycee> Hmm, it would be to use `disabledModules` and inject your own version of the module. But that would be quite a bit more invasive.
hax404 has joined #home-manager
<rycee> At some point the service options should be made to have an `enable` option that could be used.
<rycee> I.e. so that you could write `systemd.user.services.sxhkd.enable = false;`
<cole-h> I just figured out my long-standing problem with `sessionVariables` never getting sourced
<cole-h> Turns out it wasn't related to using `fish`, but rather that I start sway from TTY... which sets `__HM_SESS_VARS_SOURCED`
<cole-h> Or rather, `fish` sets that variable, and sway inherits it when I start it, meaning none of my terminals would get the sessionVariables
<cole-h> On another note, is there any way to force-clobber an existing file?
<cole-h> I'm trying to drop my `gitk` configuration, but whenever I open `gitk`, it writes the window size and position to that file (and makes it a regular file instead of a symlink)
<cole-h> As you can imagine, hm complains about that file existing when I try to switch
<__monty__> cole-h: A custom activation script with ln -sf?
__monty__ has quit [Quit: leaving]
<cole-h> Duh, why didn't I think of that. I forgot `ln` has a force flag.
<cole-h> I'll have to thank them later
<hpfr[m]> rycee: are you sure there's an issue for sxhkd? I searched that and didn't find any. it sounds like it might be what cole-h is describing?
mexisme_ has joined #home-manager
mexisme_ has quit [Ping timeout: 240 seconds]
mexisme_ has joined #home-manager