gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
freeman42x[NixOS has quit [Remote host closed the connection]
freeman42[NixOS] has joined #nixos-chat
<ashkitten> evanjs: i'm trying to get openrazer working but trying to use the python lib to connect gives me this: https://gist.github.com/ashkitten/0e8b3b33c4b854cd7fe32a015710c62f
<evanjs> ashkitten: it looks like openrazer is not running. Did you enable the module in your system config? And on that note, I’m assuming you have a local nixpkgs repo with my PR or similar?
<ashkitten> evanjs: i have your PR in my nixpkgs, and the module is enabled
<ashkitten> the systemd user service is running
drakonis1 has quit [Read error: Connection reset by peer]
<evanjs> ashkitten: alright good. And was just about to ask that. It looks like the dbus service itself isn’t present. Hrm this is interesting. No weird messages from journalctl or etc, I’m assuming?
<ashkitten> no
drakonis1 has joined #nixos-chat
<evanjs> ashkitten: Going to test on my laptop (not the ZNC computer lol). Are you trying this in a nix-shell?
<ashkitten> yeah
LnL has quit [Quit: exit 1]
<evanjs> ashkitten: sorry about that, my laptop was low on space and the config was sorta borked. Rebuilt with openrazer and I ran dbus-monitor. Plugged a mamba in and I got an event from /org/razer. Checking d-feet, it also _does_ appear in the session bus. Phew. Scared me for a second there 😃
<evanjs> ashkitten: alright I think I got it
<ashkitten> evanjs: you know what's up?
<evanjs> ashkitten: `nix-shell -I nixpkgs=/home/evanjs/src/nixpkgs -p 'python37.withPackages(ps: with ps; [ openrazer ])' -p openrazer-daemon --run "python -c 'from openrazer import client; print(client.DeviceManager())'"`
<evanjs> ashkitten: that worked for me
<evanjs> oooo that
<evanjs> is so satisfying to finally use
<evanjs> ashkitten: let me know if it still doesn't work.
<ashkitten> doesn't work
<evanjs> ashkitten: What happens
<ashkitten> same thing
<evanjs> Hrm. How did you launch your shell?
<ashkitten> i just ran the line you gave me
<evanjs> alright. also, did you make sure you're in the plugdev group and log out and back in?
<ashkitten> i've rebooted multiple times
endformationage has quit [Quit: WeeChat 2.5]
<evanjs> ashkitten: Hrmmm. Only thing I can think of is that your dbus is funky, which is weird, as you said `systemctl status --user openrazer-daemon` returns positive, which should indicate it's working as intended
<ashkitten> i've even got dbus in systemPackages now
<ashkitten> i dont think that's required but i do
<evanjs> Do you see any events from openrazer with `dbus-monitor` when you unplug or plug in devices? Assuming you have a device to test with
<evanjs> /org/razer, etc
<ashkitten> no
<evanjs> how about `systemctl status dbus`
<ashkitten> no
<evanjs> wait is dbus not running?
<ashkitten> what? it's running
<evanjs> Oh okay
<ashkitten> just things aren't showing up from razer
<evanjs> Oh right right
<ashkitten> which is interesting because razer says it's serving dbus
<evanjs> Right that's why I'm confused. What does the systemctl status output for openrazer-daemon show, anyway?
<evanjs> Wow okay why is this not working lol
<ashkitten> ¯(°_o)/¯
<evanjs> what window manger/desktop are you using. anyway? I know some of them sorta ignore dbus stuff, I think?
<evanjs> By default
<ashkitten> i3
freeman42[NixOS] has quit [Ping timeout: 245 seconds]
vika_nezrimaya has quit [Ping timeout: 246 seconds]
<evanjs> Bah. I’m honestly at a loss here. It’d be nice if we could identify the issue so whatever is required is forced on when openrazer is enabled, though. Not much on the wiki page aside from enabling dconf
<evanjs> Going to try and reproduce with i3
<ashkitten> evanjs: ty for looking into this
<evanjs> ashkitten: Don't mention it. Just confused af now as it works on i3 on my machine -_-
<ashkitten> evanjs: my config is all here: https://github.com/ashkitten/nixos-config/tree/openrazer
<ashkitten> start at devices/boson/default.nix
drakonis1 has quit [Quit: WeeChat 2.4]
buckley310 has quit [Quit: leaving]
buckley310 has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 264 seconds]
vika_nezrimaya has joined #nixos-chat
vika_nezrimaya` has joined #nixos-chat
vika_nezrimaya has quit [Disconnected by services]
vika_nezrimaya` is now known as vika_nezrimaya
vika_nezrimaya has quit [Quit: ERC (IRC client for Emacs 26.2)]
Jackneill has joined #nixos-chat
drakonis has quit [Remote host closed the connection]
drakonis has joined #nixos-chat
vika_nezrimaya has joined #nixos-chat
<vika_nezrimaya> it seems like notmuchmail.org is down and home-manager switch is failing for me
<ldlework> time to rearchitect your user expressions
<vika_nezrimaya> ldlework: I need notmuch, I wanted to set it all up again
<vika_nezrimaya> I've set up a new mail server and I want to use notmuch on it but...
<makefu> vika_nezrimaya: maybe change expression to use archive.org ? https://web.archive.org/web/20190622151523/https://notmuchmail.org/releases/
<ashkitten> yk what'd be good? if screen could start up without a shell, so you've got a blank tty for some other program (like qemu's serial interface) to shove itself into
<ashkitten> you can do that by creating a serial terminal pair with socat but that's more steps than it needs imo
<vika_nezrimaya> makefu: I need git.notmuchmail.org
* ldlework now_theres_a_name_long_time.png
<vika_nezrimaya> I can't build emacsPackagesNg.notmuch
<ldlework> vika_nezrimaya: they are suggesting to change the source in that expression from the unavailable one to an archive
<ldlework> p. sure
<makefu> vika_nezrimaya: https://github.com/notmuch/notmuch
<makefu> "mirror of the http://git.notmuchmail.org/git/notmuch repository"
vika_nezrimaya has quit [Ping timeout: 252 seconds]
freeman42[NixOS] has joined #nixos-chat
vika_nezrimaya has joined #nixos-chat
__monty__ has joined #nixos-chat
<eyJhb> infinisil: re: "oh where di I have the most up-to-date version of this again?" (23th of August), I actually did experience this, when I had to move all the files back. Because I had to think which files/folders I modified during my week in South Africa
<hyperfekt> vika_nezrimaya: With fixed output expressions and tryEval you might be able to make Nix try several mirrors
<hyperfekt> s/expressions/derivations
vika_nezrimaya has quit [Ping timeout: 244 seconds]
freeman42[NixOS] has quit [Ping timeout: 252 seconds]
abbradar has joined #nixos-chat
sphalerit has quit [Write error: Connection reset by peer]
philipp[m] has quit [Remote host closed the connection]
worldofpeace has quit [Remote host closed the connection]
thefloweringash has quit [Write error: Connection reset by peer]
colemickens has quit [Write error: Connection reset by peer]
abbradar has quit [Write error: Broken pipe]
Ralith has quit [Write error: Broken pipe]
colemickens has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-chat
sphalerit has joined #nixos-chat
Ralith has joined #nixos-chat
thefloweringash has joined #nixos-chat
worldofpeace has joined #nixos-chat
<eyJhb> srhb: was it today or next month your start your "new" job? :D
<srhb> Next month!
<srhb> Hard to be patient :P
<adisbladis> srhb: What are you going to do
<hyperfekt> Trying to get my headphone jack mic working and failing... It works in Ubuntu and both the hdajackretask thing and snd_hda_intel model parameter yield no success
<hyperfekt> Apparently it's a pin quirk fixed in the kernel and I've got no idea why my kernel doens't have that :/
<Taneb> Maybe you're using an older kernel?
<hyperfekt> Taneb: Nah, I diffed the relevant file and the relevant parts are the same. Also that fix landed ages ago and I'm on 5.1.0
<hyperfekt> I suspect the config
<hyperfekt> ❯ zcat /proc/config.gz | rg PCI_QUIRKS
<hyperfekt> CONFIG_PCI_QUIRKS=y
<hyperfekt> no idea what to do now
psyanticy has joined #nixos-chat
cjpbirkbeck has joined #nixos-chat
<eyJhb> srhb: understandable! Being patient isn't my strong suite either..
<srhb> adisbladis: Back to working on a NixOS platform :)
<srhb> eyJhb: Soon :P
<eyJhb> My "soon" is three years from now :(
<etu> srhb: Ooh, working on a NixOS platform :)
<srhb> eyJhb: Yeah, that's a bit hard :P
<eyJhb> srhb: It is :( But that is university for you!
<eyJhb> I just hope this semester will be awesome, and end up with another trip!
<Taneb> What do you mean by a NixOS platform?
<srhb> As in something based not on Not-NixOS, but on NixOS :P
<srhb> Building complex architectures without Nix becomes really displeasing once you're tainted...
<aanderse> srhb: i hope you'll be able to share the details at some point, sounds interesting :)
<srhb> Sure. :)
<srhb> It's probably not too different from what every other shop that actually builds on NixOS does though.
<eyJhb> srhb: opensource your infrastructure at work ;) Would most likely be appreciated :p
endformationage has joined #nixos-chat
<averell> this together with mobile-nixos, the spectrum-os thing, lot's of people suddenly starting fulltime nix stuff :)
<eyJhb> averell: and it is awesome! :D
<eyJhb> Will do a rm -rf / and run NixOS if I could
<eyJhb> Didn't notice it was the same video..... Sorry
waleee-cl has joined #nixos-chat
drakonis1 has joined #nixos-chat
LnL has joined #nixos-chat
cjpbirkbeck has quit [Quit: Quitting now.]
cjpbirkbeck has joined #nixos-chat
drakonis1 has quit [Quit: WeeChat 2.4]
alex_giusi_tiri has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 252 seconds]
<hyperfekt> this sucks. i might need to use an ubuntu vm to use my hardware cause i can't figure out what the problem is :<
drakonis_ has quit [Ping timeout: 250 seconds]
freeman42[NixOS] has joined #nixos-chat
vyorkin has joined #nixos-chat
<vyorkin> Have anyone tried making derivations for OCaml packages?
<vyorkin> I want to make one for the ocaml-rpc, but the ocaml-rpc package contains smth around 5 libraries and I'm not sure how to organize such derivations
<vyorkin> Could anyone please suggest an example to look at?
<hyperfekt> lmao it turns out kde fucking sucks, my headset jack always worked but was completely mislabeled
Jackneill has quit [Remote host closed the connection]
<srhb> vyorkin: Did you check how the ocaml packages in nixpkgs are structured?
<vyorkin> srhb: Yeah, but I didn't find a package similar to the ocaml-rpc
<vyorkin> but I think I've figured it out... maybe
<srhb> vyorkin: Oh, what's special about it?
<vyorkin> srhb: it contains several libraries in it
<srhb> I see. :)
<vyorkin> I think that I just need to make a separate derivation for each ".opam" file
<srhb> That sounds sensible.
<vyorkin> For example, if I had the derivation for the "rpclib.opam" https://github.com/mirage/ocaml-rpc/blob/master/rpclib.opam then I could use any library specified here https://github.com/mirage/ocaml-rpc/blob/master/src/lib/dune
<vyorkin> I was confused because I thought that I need to create a derivation for each library mentioned in the dune file
jtojnar has joined #nixos-chat
tokudan[m] has joined #nixos-chat
evanjs has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
evanjs has joined #nixos-chat
<kraem> nice addition with the ability to choose channel while searching for packages on nixos.org 🔝
AluisioASG has quit [Read error: Connection reset by peer]
AluisioASG has joined #nixos-chat
infinisi1 has joined #nixos-chat
infinisil has quit [Read error: Connection reset by peer]
andi- has quit [Ping timeout: 264 seconds]
Myhlamaeus4 has joined #nixos-chat
jtojnar has quit [Read error: Connection reset by peer]
andi- has joined #nixos-chat
jtojnar_ has joined #nixos-chat
infinisi1 is now known as infinisil
psyanticy has quit [Quit: Connection closed for inactivity]
Haskellfant has joined #nixos-chat
cocreature has quit [*.net *.split]
Haskellfant is now known as cocreature
drakonis_ has joined #nixos-chat
spacekookie has quit [Read error: Connection reset by peer]
spacekookie has joined #nixos-chat
<evanjs> ashkitten: Heyyy I think I got it. Can you check $DBUS_SESSION_BUS_ADDRESS for me just to be sure?
<ashkitten> evanjs: this is from ssh not inside i3 but unix:path=/run/user/1000/bus
<ashkitten> i'm in bed, too fatigued to get up and do it properly :p
<ashkitten> so i might fall asleep and stop responding
<evanjs> ashkitten: all good. feel free to try services.dbus.socketActivated=true; when you get a chance
<ashkitten> i'll try to remember
<evanjs> ashkitten: I'll just remind you later lol
<ashkitten> sounds good
Jackneill has joined #nixos-chat
<Church-> Hey is there a sourcehut package for nix?
<Church-> Err, package/service?*
<samueldr> work in progress, yes
<{^_^}> #65109 (by eadwu, 6 weeks ago, open): sourcehut: include module
<Church-> samueldr: Hmm, how would I about locally using that?
<Church-> Eh stupid question
<Church-> I can just build locally and import into my config
<samueldr> not really, a good question, but by someone who I hoped knew already :)
<Church-> Yeah I keep forgetting haha. Don't touch nix much lately
<Church-> Been nothing but shell scripts and C lately
Jackneill has quit [Remote host closed the connection]
vyorkin has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
freeman42[NixOS] has quit [Ping timeout: 245 seconds]
lejonet has quit [Ping timeout: 258 seconds]
lejonet has joined #nixos-chat
jtojnar_ has quit [Remote host closed the connection]
jtojnar has joined #nixos-chat
waleee-cl has quit [Quit: Connection closed for inactivity]
evanjs has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
evanjs has joined #nixos-chat
Myhlamaeus4 has quit [Ping timeout: 245 seconds]
{^_^} has quit [Remote host closed the connection]
freeman42[NixOS] has joined #nixos-chat
{^_^} has joined #nixos-chat
freeman42[NixOS] has quit [Ping timeout: 244 seconds]
evanjs has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
evanjs has joined #nixos-chat
slicertaps has quit [Ping timeout: 245 seconds]
slicertaps has joined #nixos-chat
pie_ has joined #nixos-chat
<pie_> do those wall plug bug zappy things work
<pie_> i get a lot of small bugs
<pie_> and moths and crap
<samueldr> hmm, I hate when my problems become maths problems
<infinisil> samueldr: I love it, allows you to write it down properly and think about it without any fuzziness
<infinisil> What's the problem you're having?
<samueldr> let me rephrase: I hate when the problems become _my_ maths problems, though I agree that implementing as maths is good
<pie_> sometimes the math problems are hard 'xD
<samueldr> I'm sure it's baby maths, but it's been so long since I had to think :)
* pie_ is still hung up on that one thing he tried to di in haskell that ended up being a guys master thesis a year later
<samueldr> I have data, I need to figure out the relationship
<samueldr> and at worst, I think it's a log function
<pie_> dont say the
<pie_> A word
<infinisil> samueldr: Oh neat, what's the dimensions of the data?
<samueldr> comically small data
<samueldr> (I'm still looking at it, taking it in)
<pie_> sidenote, theres a reason why hypothesis falsification is a thing
<pie_> id link a chapter for hamming but that would be a pain right now
<samueldr> btw, just to show why I think it's rather trivial https://stuff.samueldr.com/screenshots/2019/09/20190902195612.png
<samueldr> that's the relationship between the size of a filesystem and the available space within
<joepie91> pie_: zappy things work only for bugs which are attracted to light, which crucially, does not include mosquitos
<joepie91> (assuming it's one of the things with UV light)
<joepie91> pie_: unrelated question, do you know anything about OpenAL being broken in WINE under NixOS
<pie_> joepie91 i have more of a moth problem
<infinisil> samueldr: Looks exponential
<infinisil> *inverse exponential
<joepie91> it will certainly help against moths, if the protective plastic bars are big enough for them to fit through
<pie_> infinisil more like square root or logarithmic ? :P
<pie_> not sure though
<infinisil> Nah squary root/log would grow infinitely
<samueldr> (btw, be careful, I'm one of those that doesn't put origin at 0,0
<pie_> well ok this does look asymptotic
<joepie91> err, holes between the protective plastic bars*
<samueldr> yeah, around 98.46% by the end
<samueldr> though sadly, the importance of the relationship is at the start of the graph
<samueldr> or else I'd put 98% and call it a day :)