<kaletaa>
can i somehow specify env vars for rofi? i'm trying to use an IME daemon, but since some env vars are not set, they simply refuse to work in programs i start with rofi
ece3 has joined #home-manager
Synthetica has joined #home-manager
ece has quit [Ping timeout: 240 seconds]
ece3 is now known as ece
<kaletaa>
i tried to make a wrapper for it, i put the missing env vars in there but it still does not want to work
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
ece has quit [Read error: Connection reset by peer]
ece has joined #home-manager
ryantrinkle has quit [Ping timeout: 240 seconds]
<shofius>
kaletaa: can you write them to your .profile?
<kaletaa>
some things still do not work this way
<kaletaa>
i'll try rebooting later
cole-h has joined #home-manager
<kaletaa>
hmm, even after setting the envvars in .profile, it refuses to work
<kaletaa>
these are the envvars i've been babbling about btw
<kaletaa>
QT_IM_MODULE=ibus
<kaletaa>
GTK_IM_MODULE=ibus
<kaletaa>
XMODIFIERS=@im=ibus
<rycee>
kaletaa: How do you run rofi? From some service?
<kaletaa>
sxhkd launches it for me
<kaletaa>
it's a service, yeah
<kaletaa>
i could try wrapping sxhkd
MidHotaru_ has joined #home-manager
<rycee>
kaletaa: You could try adding `systemd.user.services.sxhkd.Service.Environment = [ "QT_IM_MODULE=ibus" "XMODIFIERS=@im=ibus" "GTK_IM_MODULE=ibus" ]` to your configuration.
<kaletaa>
oh i did not know that was possible, thanks
<kaletaa>
that's quite convenient
<rycee>
Alternatively, if you want those variables in all services then define them in `home.sessionVariables` and add `xsession.importedVariables = [ ""QT_IM_MODULE" "XMODIFIERS" "GTK_IM_MODULE ]`
<kaletaa>
is it xsession.importedVariables? does not seem to be documented
<kaletaa>
it does not cry about the option not existing
<rycee>
For some reason the option is defined with `visible = false`, which makes it not show up in the documentation.
<kaletaa>
ah alright
<rycee>
Should be safe to use though and it should probably be visible.
<kaletaa>
yep, it works
<kaletaa>
thanks a lot
<rycee>
Nice, glad it works :-)
<kaletaa>
sadly, firefox still does not like it
<kaletaa>
the hacking and endless bodging continues
<kaletaa>
looks like it works with QT but not with GTK
superherointj has joined #home-manager
<shofius>
anyone wanna help take a stab at my latest issue? lol. for some reason i'm getting permission issues when it tries to download my NUR repo and unpack it. i'm using Nix on PostmarketOS (which is based on alpine... so not NixOS, and also no systemd). I'm otherwise able to install stuff just fine and home-manager works like normal except for this. am I maybe importing something incorrectly?
<shofius>
i should add too that if i uncomment line 6 on my home.nix file (the override where it imports my NUR repo from a local directory) it works fine... so i guess it has something to do with where it's downloading the tarball to? idk
<__monty__>
I doubt you actually want to import a tarball?
<shofius>
that's how the example is in the home-manager readme... did i do it wrong? :/
<shofius>
i'm just trying to use a module from my NUR repo in my home-manager config
<__monty__>
I don't see it in the README anywhere.
<__monty__>
Ah, TIL. Still, you'll probably want to import the actual NUR and then get your module using `nur.repos.you.module`.
<shofius>
the NUR readme also says to do it this way to avoid infinite recursion errors (which i was also running into previously...)
<shofius>
apparently that's specific to modules
<shofius>
there's also an example in there for integrating with home manager, but that didn't seem to help either
<shofius>
is there a way to have home-manager drop me into a shell with the build environment if it fails?
MidHotaru_ has quit [Quit: Connection closed for inactivity]
Ke has quit [Ping timeout: 245 seconds]
emily has quit [Ping timeout: 245 seconds]
maralorn has quit [Ping timeout: 245 seconds]
Dandellion has quit [Ping timeout: 245 seconds]
petrichor has quit [Ping timeout: 260 seconds]
slby[m] has quit [Ping timeout: 245 seconds]
bbigras has quit [Ping timeout: 245 seconds]
slby[m] has joined #home-manager
bbigras has joined #home-manager
emily has joined #home-manager
Ke has joined #home-manager
Dandellion has joined #home-manager
petrichor has joined #home-manager
maralorn has joined #home-manager
<nicolas[m]>
shofius: HM doesn't support it. I think you would need to replicate the logic from the home-manager script and drop into a shell at the nix-build part
<nicolas[m]>
IIRC the only way to drop in a shell is using the breakpointHook in a derivation
<nicolas[m]>
and HM's activation package does not have the `breakpointHook` in its nativeBuildInputs/buildInputs
<nicolas[m]>
to amend my answer: you can technically drop in a shell, but you would need to mess around with multiple things to get it working
<shofius>
i see
<shofius>
any idea why i might be running into this permissions issue?
<shofius>
it looks like it's trying to download it to /tmp and then unpack it and move it into the nixt store
<shofius>
my user has read/write on both /nix and /tmp
<shofius>
the more i try to dig, the more i realise i have no idea what i'm doing lol
<nicolas[m]>
shofius: sorry, I didn't read the conversation past the lastest message I replied to
<nicolas[m]>
As for the stacktrace you posted earlier, your `imports` seems wrong... You seem to be calling `attrValues` on a function
<shofius>
yeah, i had it like that because it says to do it that way in the NUR readme, but i noticed an error about it in the stack trace so i changed it to `imports = [ nur-no-pkgs.blah.bah ];`
<shofius>
i thought i updated the gist
<shofius>
oh weird, the gist shows me updating it from that to the attrValues thing... now i'm extra confused. i know i've tried both though
<rycee>
For me it prints `/nix/store/fw43dl6s3v81h1kxdv9xxpxdcdh99h9r-source/modules/pinephone/sxmo.nix` which seems to be an OK file.
ryantrinkle has joined #home-manager
ryantrinkle has quit [Ping timeout: 240 seconds]
<shofius>
rycee: i'm getting the same errors. a bunch of operation not permitted errors and then it says it doesn't know how to unpack the zip file
<rycee>
shofius: Interesting, maybe your Nix install is a bit wonky. Do you get the same error with `nix eval '(import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/master.tar.gz") {}).lib.version'`?
<shofius>
trying that now...
<shofius>
nope, that one worked
<shofius>
"21.05pre-git"
<shofius>
i was wondering if maybe it was my nix install so i actually blew away the whole os and re-installed it and then reinstalled nix
<rycee>
shofius: Ok. But the NUR use still fails?
<shofius>
yeah
<shofius>
it works fine if i uncomment the local import in the repoOverrides