<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 🤷♂️
<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];}`
<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?