gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
drakonis has quit [Ping timeout: 245 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
Ralith has left #nixos-chat ["User left"]
tilpner_ has joined #nixos-chat
tilpner has quit [Ping timeout: 265 seconds]
zacts has joined #nixos-chat
zacts has quit [Quit: WeeChat 2.4]
cdepillabout has joined #nixos-chat
cdepillabout has quit [Ping timeout: 245 seconds]
cdepillabout has joined #nixos-chat
cdepillabout has quit [Ping timeout: 245 seconds]
cdepillabout has joined #nixos-chat
<eyJhb> I was excited for cute animals, but patches are okay as well
johanot has joined #nixos-chat
endformationage has quit [Quit: WeeChat 2.6]
Jackneill has joined #nixos-chat
cdepillabout has quit [Ping timeout: 245 seconds]
<eyJhb> Trying really hard to avoid doing GUIs for a lecture, and found a TUI library, but the TextEditor is borked :( https://github.com/marcusolsson/tui-go
<eyJhb> But it is really nice anyways
<eyJhb> gchristensen arahael the database on my machine is 16GB , the one on the slow server is 32 GB.. :p ANd they have the same amount of data :p
<eyJhb> Nvm. it is 47 GB on my own laptop (fast)
veske has joined #nixos-chat
johanot has quit [Ping timeout: 245 seconds]
johanot has joined #nixos-chat
cdepillabout has joined #nixos-chat
veske has quit [Quit: Leaving]
<eyJhb> srhb 3 days left
cdepillabout has quit [Quit: Leaving]
<srhb> 4? Ish. :P
<eyJhb> Friday, saturday, sunday? monday? Yeah true... :D
<eyJhb> Accidentally deleted my cached lockscreen image and had to improvise (else I couldn't lock), https://i.pinimg.com/originals/99/94/85/99948590af3701eae22c8e4e4e3dc687.jpg pretty good. Crazy bunny man I guess
johanot has quit [Ping timeout: 265 seconds]
psyanticy has joined #nixos-chat
__monty__ has joined #nixos-chat
johanot has joined #nixos-chat
tilpner_ is now known as tilpner
johanot has quit [Quit: WeeChat 2.4]
tilpner has quit [Quit: WeeChat 2.6]
tilpner has joined #nixos-chat
veske has joined #nixos-chat
<sphalerite> eyJhb: you mean, a GUI running in a terminal. :p
<__monty__> Aka a TUI.
<sphalerite> __monty__: well, I think it's kind of a false dichotomy
<sphalerite> __monty__: it's still a GUI.
<sphalerite> Just one that's implemented on a character grid.
<__monty__> It's not a false dichotomy, it's a subcategory.
<sphalerite> > eyJhb | Trying really hard to avoid doing GUIs for a lecture, and found a TUI library
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):266:7
<__monty__> UI > GUI > TUI, UI > CLI
<gchristensen> [grahamc@Petunia:~]$ uname -a
<gchristensen> Linux Petunia 2.6.79 #1-NixOS SMP Thu Sep 19 07:09:41 UTC 2019 x86_64 GNU/Linux
pie_ has quit [Ping timeout: 265 seconds]
<sphalerite> gchristensen: huh?
<gchristensen> =)
<gchristensen> that is what I said after accidentally running uname26!
<sphalerite> lol neat
<sphalerite> did not know that existed
<sphalerite> actually not so neat, it's actually kind of horrible that this needs to exist. But hey.
<gchristensen> :D
<__monty__> Uhm, WAT?
endformationage has joined #nixos-chat
averell has quit [Quit: .]
averell has joined #nixos-chat
veske has quit [Quit: This computer has gone to sleep]
waleee-cl has joined #nixos-chat
pie_ has joined #nixos-chat
<ashkitten> uhh what
<gchristensen> huh?
<ashkitten> what is uname26 for,
<gchristensen> Iguess pretending its a Linux 2.6 systetm
<samueldr> software compatible with Linux 2.6 only figure
<samueldr> 2.4 vs. 2.6 was a major breaking change IIRC
<samueldr> while 2.6 -> 3, 4, 5+ are all mostly compatible
<ashkitten> why is it installed by default is my question
<samueldr> hmm
<samueldr> part of util-linux
<ashkitten> so it's installed with most distros, i guess?
<ashkitten> man uname26 gives me setarch
<ashkitten> so i guess it's an alias or something
<samueldr> it's a multicall binary
<samueldr> linux32, linux64, x86_64 and i386 also link to it
<ashkitten> whyyy
<samueldr> the other setarch variants are neat as they react deeply with the kernel, making an x86_64 system act just as well as an i686
<samueldr> this is often used to compile i686 off of native x86_64
<samueldr> a thing that would have been nice on ARM
<ashkitten> i don't like multicall binaries polluting my autocompletion >,,>
<samueldr> though yeah, that sounds more like something that should have been in stdenv and not installed in the base system
<ashkitten> i'd be fine with just setarch being included but not.. literally commands that are just architecture names
<ashkitten> one of the things i noticed first when i started using nixos was how blank the slate was, like when i launched rofi it didnt even have enough entries to fill the window
<ashkitten> that's the sort of experience i love about this distro
<gchristensen> +1
<ashkitten> system dependencies don't interfere with the user environment at all and that's great
<gchristensen> signal-desktop is so slow to start :o
drakonis has joined #nixos-chat
<sphalerite> ashkitten: what about multicall binaries like coreutils? :p
<ashkitten> i just don't want things i dont need
drakonis has quit [Ping timeout: 240 seconds]
<aleph-> Hey folks
<aleph-> What's up gchristensen ashkitten sphalerite
<pie_> joepie91: OMG SOMEONE IMPLEMENTED MY IDEA https://youtu.be/MyxWDHy4ppY?t=94 look at the bottom info bar thing that shows possible key bindngs! or something like that
<pie_> i didnt have this idea for blender, just some gui thing i wanted to write
<pie_> its a pretty evident idea but its the first time ive seen it implemented
<pie_> i feel validated xD
<joepie91> oh, huh, nice
<joepie91> yeah, that looks great
<pie_> idk this makes me really giddy right now for some reason
<pie_> i need to try blender 2.8 sometime
<pie_> and get frustrated at my lack of art skills
<aleph-> Hmm, I should probably overload the restic service with my patched binary...
<pie_> ok wow blender 2.8 is sounding pretty rad
Jackneill has quit [Remote host closed the connection]
pie_ has quit [Ping timeout: 240 seconds]
cjpbirkbeck has joined #nixos-chat
pie_ has joined #nixos-chat
<sphalerite> pie_: oooh, I haven't followed blender developments in a long time, but remember it was always very exciting :D
psyanticy has quit [Quit: Connection closed for inactivity]
<sphalerite> I've asked this in ##electronics as well, but I'll ask here too because nixos people are a lot more friendly and helpful than any other place I know on freenode ♥ so here goes: I have a little project, but I'd like some advice on it… So I have some blinds that are currently controlled by some wall switches which just connect/disconnect motor <-> mains. I want to refine this a bit, with an ESP32 and a
<sphalerite> relay module, so that I can control it a bit more conveniently. I'd like for the whole thing to look the same from the outside. My questions are (1) is this an awful idea, given that it involves mains voltage and I am not a qualified electrician? (2) if not, would using a "Mean Well RS-15-3.3" power supply for the ESP32 be an awful idea, given that this will be inside my wall and not have much in the way
<sphalerite> of ventilation?
<gchristensen> sphalerite: my advice would be to find a ready-made relay module, designed for mains
<gchristensen> for example: https://www.sparkfun.com/products/13815
<joepie91> that, and also IKEA Koppla USB chargers (https://lygte-info.dk/pic/USB%20PS/49%20Ikea%20Koppla/DSC_2497.jpg) are widely-available, reliable, good power supplies for ESPs and such
<sphalerite> gchristensen: yep, ready-made relay module is the plan :)
<joepie91> that are reasonably priced
<gchristensen> or something like https://www.sparkfun.com/products/13015
<sphalerite> joepie91: I want to put it in my wall though, and I have no electrical socket to plug into there
<ajs124> sphalerit: where would you put it? _under_ the switch?
<sphalerite> ajs124: yes
<gchristensen> I'd hesitate to put it in the wall.
<gchristensen> also, be careful to not toggle it too fast -- that can get ... exciting.
<joepie91> yeah, I probably wouldn't put it in the wall either without at least consulting someone who does this sort of thing professionally
<ajs124> Yeah. I'm an electrical engineer, not an electrician, but putting things in walls sounds like a fire hazard to me.
<samueldr> generally things need to be into some kind of box, like your switch likely is
<gchristensen> putting it the wall without it being UL-listed (or whatever your equivalent is) is a no-go for me
<sphalerite> alright, that's the sort of info I wanted ^^
<joepie91> aside: there are off-the-shelf zigbee blinds now afaik
<joepie91> uninteresting if you just want a project
<joepie91> but if it's about the end result, that may be an easier option :)
<sphalerite> alright… that makes stuff more complicated though x) I want it to look as unintrusive as possible, and still be able to use the current wall switches
<gchristensen> joepie91: do you know of anything pretty simple for remotely closing a circuit of any sort?
<sphalerite> joepie91: well, that would be cool, but I don't want to tear out the existing blinds :D
<joepie91> gchristensen: IKEA has remotely controllable power sockets under their TRADFRI line, and their electrical stuff is generally up to scratch safety-wise
<sphalerite> an _almost_ perfectly suited solution would be a sonoff 4ch
<joepie91> gchristensen: there's also a wide variety of sonoff stuff, but their electrical safety is.. questionable :)
<gchristensen> a bit overdoing it
<sphalerite> but the issue with that is that I have no way to connect the existing switches to the 4ch
<sphalerite> or, well, I could, but that would mean soldering and stuff
<joepie91> sphalerite: don't solder anything that does mains
<joepie91> ever
<gchristensen> I want to make a remote control for my garage door, since I can't buy a replacement button, making my only other "off the shelf" option a entire new garage door opener system
<joepie91> (unless you very specifically know why it is okay in a given case)
<gchristensen> so I need a remote controlled momentary switch, switching a low DC voltage
<cransom> i use an esp8266 and a relay to click close the circuit on the opener button
<joepie91> instead you want clamp-based connectors (I forgot the name) with the necessary strain relief etc.
<gchristensen> cransom: mind giving some more details? :~)
<joepie91> gchristensen: ah, hm, that sounds more into hobby territory. however, if it's low-voltage DC, a sonoff thing is probably fine safety-wise
<samueldr> you might want to search for your local regulations about terminating electrical connections as it may vary between countries :)
<joepie91> gchristensen: and sonoff has a loooooot of off-the-shelf things
<samueldr> and yeah, generally it's not soldered for mains
<cransom> the parts you want to fiddle with for garage door opening is low voltage
<gchristensen> cransom: do you have another esp8266 in the car?
<sphalerite> joepie91: hm, I'm worried now, does "temporarily solder wires onto the esp8266 module in a smart socket in order to flash it" count as "very specifically ok"?
<cransom> i use a https://wiki.wemos.cc/products:d1_mini_shields:relay_shield (an ebay clone most likely) hooked into a wemos d1 mini to do the opening. a photo resistor and an ultrasonic distance detector to see if the door is probably open or garage light is on, etc.
<sphalerite> joepie91: (and never attaching it to mains while the case is open)
<joepie91> sphalerite: flashing is hopefully not at mains voltage :)
<joepie91> soldering is fine for low-voltage
<cransom> gchristensen: no, i hook it into home assistant over mqtt and open it from my phone over wifi. it hooks into siri too so i can tell her to open the garage.
<sphalerite> joepie91: certainly not, but it's a mains voltage device and all the mains voltage soldery stuff is there :)
<sphalerite> joepie91: alright, that's a relief :D
<gchristensen> cransom: :o can you write up a bit more? I'd love to just .. uh ... copy everything you've done.
<cransom> but the esp8266 can broadcast an ssid that you could hook up to directly if you desired.
<joepie91> sphalerite: the concern is mainly that solder connections cannot necessarily withstand high voltage if the load is high enough
<joepie91> so it's only really applicable if you're actually doing HV over your soldered connections
<sphalerite> joepie91: aah ok
<joepie91> soldering the LV connections is fine, though of course be careful not to mess with the HV electronics (not accidentally either) and never have the HV circuitry both connected and exposed at the same time
<joepie91> sphalerite: that having been said, flashing firmware onto an ESP that's part of a socket is not necessarily a safe operation; depending on how the socket is designed, controlling the wrong pins may lead to it failing unsafely
<sphalerite> so there's no way I'll get this to work safely and still look the same as before :(
<sphalerite> joepie91: oh? How?
<joepie91> sphalerite: there's probably a solution that is both safe and keeps looking the same, but probably noone in this channel is qualified to suggest what that would be, and it's definitely something I'd personally leave to a professional :P
<joepie91> sphalerite: well, *if* the circuitry is designed under the assumption that the firmware will never enable two particular pins at the same time, for example, and your custom firmware *does* accidentally do that, you have a problem
<joepie91> it's like any software bug, just with HV consequences
<__monty__> I'd go with a novelty "mechanical finger flipping switches" approach.
<cransom> hrm. i can upload my hacked up stuff and jot down some notes. obvious disclaimers of it being functional, but not pretty apply.
<sphalerite> joepie91: do you have any tips for how to find an appropriate professional and any ballpark of how much it might cost?
<joepie91> sphalerite: no idiea, sorry :(
<joepie91> idea*
<joepie91> though I'd probably look for someone who at least is a certified electrician
<joepie91> (as that means that they, presumably, know the electrical safety bits)
<gchristensen> cransom: I'd like it if you did! :)
<aleph-> Heya joepie91
<aleph-> gchristensen: Getting my vacation soon, so finally expect that lobsters nix server PR :P
* aleph- can see it now
* aleph- can finally put that project in the fscking done pile
<gchristensen> nice :D
pie_ has quit [Ping timeout: 245 seconds]
<gchristensen> cransom: I'm sort of thinking even a transistor would be fine. I think power is low enough.
<cransom> and it would probably ok, but i wanted to have good isolation between that and the esp. i didn't want stray voltage or noise doing weird things with a gaping hole in the side of the apartment.
<gchristensen> that feels very reasonable
<cransom> gchristensen: https://gist.github.com/cransom/80a39b54a58cd0440c6852f9fb427dec . there's better options now than when I did my hackery earlier, so i'll send you that way rather than what i have as it will be better all around.
<gchristensen> thanks!
<gchristensen> I'm reminded yet again that there are zero places within an hours drive to get supplies for this project
<joepie91> on a related note, I need to build a little wall.
<joepie91> I do not have a car.
<joepie91> once again, this is a problem...
<cransom> that is correct. everything i have done electronically speaking has basically come direct from china.
<gchristensen> annoying :)
<cransom> a few might have had stops in us warehouses, but it's fun to click buy buttons and then a month later you have presents in the mail that you don't remember what you ordered or which one it is
<gchristensen> haha
<joepie91> heh
<joepie91> cransom: it's remarkable how many people describe that as a feature
<joepie91> it's probably one of the most common remarks I've heard about buying crap from China
<cransom> if you are impatient, you can buy from amazon too for way faster. but i've gotten older, wiser, more patient.
<joepie91> cransom: we just got the good end of the stick here in NL
<joepie91> takes 1-2 weeks now
<joepie91> because most sellers ship directly via the Chinese arm of PostNL, the Dutch postal service
<joepie91> so a) it's way faster, b) it shows up in tracking
<cransom> it's also a gamble if you got what you ordered too. i remember ordering... somethign. can't remember now. but the package showed up and it was a bag of ESD tweezers.
<gchristensen> just what you needed
drakonis has joined #nixos-chat
<joepie91> cransom: oh, I pretty reliably get what I order
<cransom> epacket shipments from china are pretty well tracked. though often they generate the shipment and you have it before its updated that it has left a china port.
<joepie91> heh
<joepie91> it's actually live here
<joepie91> oh, speaking of cheap things from China
<joepie91> can strongly recommend YESO backpacks
<cransom> i expect a number of aliexpress orders in my future too. i'm itching to build a new/another 3d printer
<joepie91> typically priced from $20 - $50, very high quality backpacks
<joepie91> they have an aliexpress store
<joepie91> eg. this is the one I have: https://www.aliexpress.com/item/32689211728.html
<cransom> wow. those are inexpensive.
<joepie91> have had it for like 2 years now I think
<joepie91> still in great condition
<joepie91> I have the older revision, which had one imperfection, no padding in the bottom of the laptop part
<joepie91> the new revision has fixed that
<joepie91> cransom: yeah, really good quality too. someone else at $hackerspace ordered a different backpack, one specifically for quadcopters, and it was super high quality too
<joepie91> so at this point I feel fairly comfortable assuming that this holds true for their entire line of products :P
<joepie91> anyway, my general approach for getting good deals off aliexpress, quality-wise, is to buy the stuff that's one price tier above the cheapest stuff
<joepie91> the very lowest tier is the one where they cut all the possible corners including corners you kinda wanted to keep
<joepie91> the tier above it seems to be the "well-optimized design/production, therefore good value for money" tier
<__monty__> It's ok for some electronics things. USB-C to A adapters for example.
<joepie91> (also, when I say "good quality" I don't mean by aliexpress standards, I mean by general standards)
drakonis has quit [Read error: Connection reset by peer]
<gchristensen> cransom: if I go this route but with a rpi, it becomes dangerously close to as much money as a new garage door opener :)
waleee-cl has quit [Quit: Connection closed for inactivity]
cjpbirkbeck has quit [Quit: Quitting now.]
__monty__ has quit [Quit: leaving]