gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<joepie91> indeed
<joepie91> especially instantly-closing though :OP
<joepie91> :P*
<joepie91> but yeah, the objective of this project is to design UI controls that 'feel like native;
<joepie91> so there's a lot of work in small stuff like the exact submenu delay to make it feel just right
<samueldr> I prefer using the phrase "feels as good as native toolkits", because otherwise you get people saying that it doesn't *look* or behave *exactly* like their preferred toolkit :)
<joepie91> heh, yeah
<joepie91> but I've linked this in a few places already, and so far it doesn't seem to have offended anyone with its javascriptness
<joepie91> which suggests that it's going in the right direction :P
<samueldr> one thing you won't be able to do is a menu that escapes the viewport if needed though :)
<joepie91> yeah, there are a few limitations like that
<samueldr> oof
<samueldr> big oof
<joepie91> but that's out of my hands
<samueldr> no keyboard use
<joepie91> correct, no keyboard use nor accessibility hints whatsoever yet
<joepie91> this is far from ready for production use
<joepie91> it doesn't even have a global focus mechanism yet, that's next on the list
<joepie91> (even though the behaviour when clicking outside of a menu might lead you to believe differently :P)
<joepie91> once it has a focus tracker, I can start thinking about keyboard control
<joepie91> as well as things like rich dropdowns
<samueldr> I think this is one place where it _could_ make it or break it: if you re-implement the focus behaviour instead of letting the browser handle it
<samueldr> hopefully yeah, you only track and not try to do your own
<joepie91> I'm fairly sure that "letting the browser handle it" isn't going to be an option unfortunately
<joepie91> I've already run into issues with <button> elements for example
<joepie91> which is why the buttons are not actual buttons
<joepie91> turns out that for some bizarro reason, Chromium layouts button content slightly differently and there seems to be no way to override that
<samueldr> yeah, also why I said _could_... it's probably possible to re-implement in a correct way
<joepie91> so I've had to return to <div>s for that :(
<samueldr> hah
<joepie91> right
<samueldr> anything "form" in DOM/CSS is extremely broken and underspecced imo
<joepie91> and well, any reimplementation is going to be to the same standard as the submenu delay stuff :P
<joepie91> yeah definitely
<samueldr> since it all leaks the platform's metrics into
<samueldr> joepie91: since it's all js-driven (I figure)
<joepie91> form elements are great when you are actually trying to build a form and nothing else, basically
<samueldr> you might be able to add hidden buttons and track focus on them?
<joepie91> it's an option, but I'm not a fan of hidden elements
<samueldr> not sure how to reconcile with accessibility though
<joepie91> they have a tendency of drawing out browser bugs
<samueldr> things are _hard_ :)
<joepie91> yeah
<joepie91> an easy project, this is not :P but also noone else has done it yet and I need it, so
<samueldr> the moment a website requires tight control (design and behaviour-wise) with form controls I know it's going to creep up in development time
<joepie91> yeah...
<joepie91> samueldr: additional design constraint is that I'm designing it like a generic UI library so there's a ton of internal complexity to deal with themeing (yes, it has themes support!), resize handling with arbitrarily nested elements, a declarative way of specifying control structures, etc...
<joepie91> samueldr: https://gist.github.com/joepie91/0a1993c6c848a24d26ef0acf43f60e96?ts=4 -- the UI specification for that demo
<samueldr> real react or something funky where you're only re-using the namespace for JSX?
<joepie91> real React
<samueldr> cool
<samueldr> looks interesting
<samueldr> I spy a div!
<joepie91> stretch goal is to make it modular, independent packages per component, but I have no idea yet how I'm going to do that, so monolithic for now
<samueldr> oh, there's way more div than I initially thought
<joepie91> :P
<samueldr> I thought you would have made your own (useless) wrappar around divs to completely abstract the browser away
<joepie91> there are actually quite a few places where arbitrary content is permitted
<joepie91> nah, the goal is to integrate with existing JSX
<samueldr> looks programmer-ergonomical
<samueldr> (I started with friendly... but I couldn't say for sure)
<joepie91> yeah
<joepie91> there's certainly still plenty of WIP bits in the API
<joepie91> but I'm reasonably happy with the ergonomics so far
<joepie91> it's fairly easy to reason from JSX to actual visual layout
<joepie91> same with the ribbon stuff
<joepie91> time for the other 90% :P
<joepie91> also there are periodic source dumps at https://git.cryto.net/joepie91/ui-lib (especially src/controls)
* samueldr has a beef at annoying interfaces
<samueldr> like that gogs file listing (and so many similar UI)
<samueldr> hover a line
<samueldr> its background change
<samueldr> click outside of the text
<joepie91> heh yeah :P
<samueldr> haha, you thought it would do *anything*?
* joepie91 doesn't like that either
<joepie91> one of those things I make a point of not doing
<samueldr> and definitely I know it's not your fault, it just fit exceedingly well with the timing
<samueldr> one of those things I make a point of doing well
<joepie91> like, the basic rule isn't even hard: hitbox should always match or exceed the visual suggestion of one
<samueldr> even the vertical lines are clickable!
<joepie91> nice
<samueldr> uh? not here
<samueldr> wait, how did that break?
<joepie91> vertical lines work for me
<joepie91> just not horizontal
<joepie91> (obv)
<samueldr> yeah
<samueldr> firefox?
<joepie91> yeah
<joepie91> oh wait!
<samueldr> I maybe didn't test out on chrome
<joepie91> the outer lines do not!
<joepie91> the right one especially
<samueldr> inner should
<samueldr> but don't here
<joepie91> so there's 1px that highlights the bar but is not clickable
<samueldr> yeah, I don't think I thought about those
<joepie91> unacceptable! :P
<joepie91> anyway, time for bed!
<samueldr> weird, a different behaviour in chrome :/
<joepie91> ie. pondering about how to implement focus tracking for an hour and then hopefully sleeping :P
rajivr has joined #nixos-chat
<energizer> is Doron Behar on irc?
<cole-h> Don't believe so
<cole-h> Or, at least, I've never seen them around here
<ashkitten> if i want to set up bind-mounts in boot.fileSystems do i use `options = [ "bind" ]` or `fsType = "bind"`?
<aleph-> Sec
<aleph-> options = [ "bind" ]
<ashkitten> aleph-: ty
<aleph-> np
<ashkitten> aleph-++
<{^_^}> aleph-'s karma got increased to 2
<cole-h> adisbladis: How easy to set up was a packet.net instance as a remote builder for NixOS?
<cole-h> As I suffer, rebuilding all this stuff, I'm tempted...
waleee-cl has quit [Quit: Connection closed for inactivity]
<ldlework> I got Calibre looking like Kindle, http://ldlework.ddns.net/caps/2020-09-21-02-31-40.png
<ashkitten> ooh nice
<ashkitten> now make the rest of the ui not garbo :D
<ldlework> yeahhh
cjpbirkb1 has joined #nixos-chat
<aleph-> And fix the gaping sec holes
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos-chat
cjpbirkbeck has quit [Ping timeout: 240 seconds]
cjpbirkbeck has joined #nixos-chat
cjpbirkb1 has quit [Ping timeout: 260 seconds]
cjpbirkb1 has joined #nixos-chat
cjpbirkbeck has quit [Ping timeout: 240 seconds]
cjpbirkbeck has joined #nixos-chat
<cole-h> Anybody with packet.net + NixOS experience: how do I set up a machine as a remote builder? I keep getting "remote machines may not have all required system features", despite manually setting the system features to match...
<drakonis> hmm, i think i'm going to use julia lang
<drakonis> but i dont know if it would work well with nixos
<drakonis> it uses a lot of bindings
cjpbirkb1 has quit [Ping timeout: 256 seconds]
cjpbirkb1 has joined #nixos-chat
cjpbirkbeck has quit [Ping timeout: 240 seconds]
<drakonis> hmm, it appears to be entirely unworkable
<{^_^}> #98043 (by doronbehar, 5 days ago, open): Julia: reinit at latest
<drakonis> yeaaaaah i dont think that'll solve the issues
<energizer> julia 1.0 works, would love to hear if somebody has a working 1.5
<drakonis> there's a ton of libraries that need bindings
<energizer> there's always conda...
<drakonis> uhh no
<drakonis> off it goes into containers then
<drakonis> hmm
<drakonis> looks like they finally grew the scientific stack it used to need bindings for
<drakonis> it still has the ability to call libraries from other languages
<drakonis> but again, its likely a bad time
<aleph-> Hmm, I should finally get an elk stack up and running.
<drakonis> elk?
<drakonis> okay found it
<aleph-> Ya
<aleph-> Need a logging solution at home
<aleph-> And it's widely used enough I should learn to admin it better
<cole-h> Cool, I can't delete a packet.net server because it's apparently being "rescued".... So it will remain online and incurring charges until someone gets back to me.
<aleph-> Fun
<cole-h> OK, rescuing finished and it finally deleted
<cole-h> 2/25 of my credit down the drain :P
<cole-h> Though I guess I'm glad it's credit rather than me actually paying for it (yet)
endformationage has quit [Quit: WeeChat 2.9]
cjpbirkb1 has quit [Quit: Goodbye, take care]
Jackneill has quit [Ping timeout: 260 seconds]
Jackneill has joined #nixos-chat
cole-h has quit [Quit: Goodbye]
<eyJhb> "clever - making things work since always" :D Always see you in #nixos helping out people ;)
<sphalerite> eyJhb: I just got far closer to a displaylink device than I would like. How can I tell if I'm infected?
<eyJhb> sphalerite: baically, if you slowly begin to hate your life, each rebuild will potentially break one display, your CPU will die. So when all this happens you are infected!
<eyJhb> But also, you loose your soul. But you get a extra monitor for it, so...
<sphalerite> well I didn't connect any computers to it so maybe I'm fine?
<eyJhb> Maybe, if you are lucky sphalerite ! - Having displaylink sort of feels like have a negative stat in a game, to unlock a extra slot to equip a item :p
<eyJhb> Why where you so close to a DisplayLink dock sphalerite ?
<sphalerite> visiting family, they seem to use it
<ashkitten> why does microsoft make it so hard to install their crappy os
<ashkitten> ive been trying for hours to make a bootable installation usb
<ashkitten> with unetbootin and woeusb, neither of which have worked (and woeusb just seems broken)
<etu> ashkitten: I wrote this file at some point: http://ix.io/2mUQ
<etu> ashkitten: Not sure if it still works
<sphalerite> hm, last I tried woeusb it worked
<ashkitten> it fails because it can't mount -t ntfs-3g
<ashkitten> because idk something is broken
<etu> Have you pulled in the package ntfs3g?
<ashkitten> yes
<ashkitten> sure enough it doesn't work
<ashkitten> but mount.ntfs-3g works
<sphalerite> aah
<sphalerite> iirc, boot.supportedFilesystems = ["ntfs"];
<ashkitten> i patched woeusb to use mount.ntfs-3g and it worked and i am now installing windows on what i desperately hope is the correct drive
<ashkitten> and hoping it doesn't decide to screw with my data on any other drive
<ashkitten> i am scared of windows >,,>
<das_j> still weird they managed to create an iso that is not dd'able to a usb drive
<viric> When does nixos erase /tmp?
<viric> I thought it was on reboot.
<viric> I had a file there and it disappeared; no reboot in the middle.
<eyJhb> Is there any good programs that we have available in nixpkgs, that can be used to solve equations etc.?
<eyJhb> I really do not want to install a ubuntu vm to run matlab or maple
<etu> viric: boot.cleanTmpDir = true
<etu> viric: "Whether to delete all files in /tmp during boot."
<makefu> eyJhb: there is jupyter-notebook with sympy where you could solve and plot equasions (never used ith though)
<c74d> eyJhb: I use wxMaxima
<c74d> sometimes there's Sage, but it's (1) huge and (2) sometimes broken
<ashkitten> also ugh virtualbox doesn't work still
<ashkitten> with hardening
<ashkitten> oh
<ashkitten> nvm
<ashkitten> that's a different error
<ashkitten> fun
<eyJhb> c74d: If I would go the sagemath way, there is a possibility I would run it inside docker :p
<eyJhb> Anyone that has done some signal processing in any of them?
<eyJhb> wxMaxima looks promising
<Taneb> Does anyone know a way to lower my default webcam quality? My upload can't handle it :(
<c74d> eyJhb: Maxima is a less-polished older sibling of Maple; I'm not very experienced with it, but there are two things I feel should be noted: (1) `is(a = b)` only tests for "syntactic equality" whereas `is(equal(a, b))` tests for "semantic" equality, and (2) even `equal` can need help to tell that two expressions are equal (try applying simplification functions such as `radcan` and `trigrat` to
<c74d> expressions before passing them to `equal`)
<pie_> woo ingesting more upstream systemd configs... https://github.com/NixOS/nixpkgs/issues/96753
<{^_^}> #96753 (by primeos, 2 weeks ago, open): Deprecate boot.cleanTmpDir?
<pie_> or is that off by default?
<pie_> might as well ingest the systemd release notes too every time we upgrade it >.>
<gchristensen> the #nixos-systemd team certainly does
<viric> etu: the file was removed without reboot
<Taneb> Oh hey the NixOS website looks iddferent
<adisbladis> Apart from lagging on my laptop when scrolling it's pretty sweet
<pie_> how do you guys start service files manually? everything is immutable so i cant change anything and i need to debug something
<pie_> specifically i want to switch out tincd for one with debug symbols
<pie_> hm i guess ill ask in -systemd
<talyz> oh wow, yeah the site looks pretty great now
<tilpner> pie_: Can you use services.tinc.networks.<name>.package?
<tilpner> (If that option didn't exist, you could use an overlay)
<pie_> im in a container, its kind of a mess and i dont want to rebuild it right now
<pie_> this is one of the annoying things about nixos .P sometimes you really do need/want to poke
<pie_> # sudo systemctl enable $(realpath .)/tinc2.service
<pie_> Failed to enable unit: File /etc/systemd/system/tinc2.service: Read-only file system
<pie_> :/ and running it manually doesnt seem to fail the same way
<adisbladis> joepie91: Are you end good with browser frontend?
<pie_> man systemd.unit lists some additional search paths which dont seem to work on nixos, and i cant find via google how to list the search path...
<adisbladis> I'm trying to figure out why the scrolling performance on the new nixos.org page is really bad for me
<adisbladis> I know it has _something_ to do with those svg backgrounds, but I don't know how to fix it
c74d has left #nixos-chat [#nixos-chat]
<joepie91> adisbladis: there appears to be a scroll event handler on the page?
<pie_> well the questions still stand but i managed to shove the service file in /run/systemd/system/tinc/ , /me runs off in a hurry
<pie_> <boucman_work> to list the paths : systemd-analyze unit-paths
<pie_> <boucman_work> and no, you can't add custom paths or look for units at different places afaik
Peetz0r has quit [Ping timeout: 244 seconds]
parsley936 has joined #nixos-chat
<sphalerite> mount -o ro -t tmpfs tmpfs /mnt
iqubic` has joined #nixos-chat
iqubic has quit [Ping timeout: 260 seconds]
waleee-cl has joined #nixos-chat
iqubic` has left #nixos-chat ["ERC (IRC client for Emacs 28.0.50)"]
<gchristensen> anyone managed to run an electron app (slack, specifically) under bubblewrap?
dada_da has joined #nixos-chat
da_dada has quit [Ping timeout: 256 seconds]
ottidmes has quit [Ping timeout: 258 seconds]
ottidmes has joined #nixos-chat
<steveeJ> gchristensen: I haven't tried to use bubblewrap at all. sorry I'm not helping :-D but I'm excited you're trying these things out! do you think we could eventually land this in home-manager as an option on programs to be contained?
<gchristensen> sounds like a cool idea :)
<steveeJ> it could be progressive as well, meaning program by program where we know it to work reasonably
cjpbirkbeck has joined #nixos-chat
cole-h has joined #nixos-chat
<ar> hm. I'm getting an interesting issue with cq-editor on one of my boxes: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
<ar> which is even more interesting because i don't hit this bug with my laptop
<cole-h> Time to diff the derivations with nix-diff? :D
<ar> $ nix-diff /nix/store/yd4izhd2y8jj6mjdzx5m68jlz918a39b-cq-editor-0.1.1.drv /nix/store/6cq0qq5xfd5rj1hv7iir0b6522ssahr6-cq-editor-0.1.1.drv | wc -l
<ar> 27302
cjpbirkb1 has joined #nixos-chat
cjpbirkbeck has quit [Ping timeout: 258 seconds]
abathur has joined #nixos-chat
<makefu> ar: not sure about the context, but maybe https://nixos.wiki/wiki/Qt#qt.qpa.plugin:_Could_not_find_the_Qt_platform_plugin_.22xcb.22_in_.22.22 or https://nixos.wiki/wiki/Packaging/Quirks_and_Caveats#ImportError:_libstdc.2B.2B.so.6:_cannot_open_shared_object_file:_No_such_file can help you
<ar> for now i've just nix-copy-closure'ed the working one from laptop
averell has quit [Remote host closed the connection]
rajivr has quit [Quit: Connection closed for inactivity]
neeasade has quit [Remote host closed the connection]
endformationage has joined #nixos-chat
waleee-cl has quit [Quit: Connection closed for inactivity]
__monty__ has joined #nixos-chat
<samueldr> ar: python-qt5?
<samueldr> ar: there is a known (by me) issue that I haven't had the time to look into
<samueldr> pyqt5 uses qt 5.14, but it's possible your software ends up using qt 5.15's wrapper
<samueldr> and: hisssssssssssssss, this is the off-topic channel :|
<samueldr> (there may be similar issues in libraries wrapping Qt using a different Qt than the main Qt, and using the main Qt's wrapper hook)
waleee-cl has joined #nixos-chat
cjpbirkbeck has joined #nixos-chat
cjpbirkb1 has quit [Ping timeout: 256 seconds]
aleph- has quit [Quit: WeeChat info:version]
aleph- has joined #nixos-chat
<pie_> i always forget what the clean way to do this is:
<pie_> nix-build -I nixpkgs=channel:nixos-unstable -E "with import <nixpkgs> {}; tinc_pre.overrideAttrs (old: { dontStrip = true; })" -v --no-out-link
<pie_> isnt there a way to do this without the import part
<cole-h> `nix-build '<nixpkgs>' -E 'tinc_pre.overrideAttrs (...)'` maybe?
<pie_> i just tried that and it didnt work but i can check
<cole-h> Indeed
<cole-h> Don't think it's possible without the import, then.
NinjaTrappeur has quit [Quit: WeeChat 2.8]
NinjaTrappeur has joined #nixos-chat
<pie_> cole-h: hm. annoying. :P
<pie_> because nix-shell -p is nice enough for it to work like that
<pie_> there should be a -E with implicit scope
averell has joined #nixos-chat
<infinisil> Tbh, -p is really hacky
<cole-h> Reeeeeealllllly hacky
<pie_> yes all the frontends are terrible
<pie_> the hackiness of -p is convenient sometimes :P
<pie_> "what do you mean you can pass experessions :O"
<cole-h> pie_: You coooooould... just make a function that does the import for you ;)
<pie_> i want it to look nicer when i write giant blogposts on github issues about the mess i trudged through :P
<cole-h> `nix-builde 'tinc_pre.overrideAttrs (old: { ... })' -I nixpkgs=channel:nixos-unstable` ;)
<Valodim> ye olde nix-builde
<cole-h> ^
<samueldr> þe olde :)
<samueldr> [compose]th
__monty__ has quit [Quit: leaving]
Peetz0r has joined #nixos-chat
parsley936 has quit [Remote host closed the connection]