sphalerite changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS 19.03 released! https://discourse.nixos.org/t/nixos-19-03-release/2652 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html https://r13y.com | 19.03 RMs: samueldr,sphalerite | https://logs.nix.samueldr.com/nixos-dev
<jtojnar> worldofpeace: hmm, maybe my patching method is borked
<worldofpeace> jtojnar: I'm not sure if I understand https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/c41c9220181b203d1cf1f6435f6e3735cb7c84ac commit correctly. But I'm gussing the noto font, if present is always preferred over third party fonts. So if gnome uses that font it rules.
<jtojnar> worldofpeace: yeah, that is how I understand it as well
<worldofpeace> jtojnar: so maybe (understand limited here) there can be a nixos option for default emoji font, which users could use to override this fontconfig preference at a higher priority?
<jtojnar> worldofpeace: correctly applying uppatch works with joypixels without joypixels.conf
<jtojnar> worldofpeace: yup, do the same as defaultFontsConf but for emoji and save it to 61-
drakonis_ has quit [Ping timeout: 252 seconds]
srhb has quit [Ping timeout: 245 seconds]
srhb has joined #nixos-dev
<jtojnar> worldofpeace: wait, do the lower numbers take precedence?
<worldofpeace> jtojnar: I think it's that the lower numbers get applied first and successive one's get prepended
<worldofpeace> In fontconfig.nix default-fonts.conf is at 52
<jtojnar> worldofpeace: yeah it looks like all files containing prefer are ≥ 60
<jtojnar> worldofpeace: testing if https://paste.gnome.org/ppjgx1gkj is suffcient
<worldofpeace> jtojnar: I think the defaults in those options are only used if fonts.enableDefaultFonts is true (defaults to false)
<jtojnar> worldofpeace: that only controls their installation, the 52 is generated unconditionally
<jtojnar> worldofpeace: yeah, that seems to work splendidly
<worldofpeace> jtojnar: yay, NixOS 19.09: year of the emoji couple years late 🤣️
<jtojnar> worldofpeace: or maybe not :-D the option does not seem to work after all
<worldofpeace> Using `fc-match --verbose Emoji` should be the quick way to check
<jtojnar> worldofpeace: yeah, now I am getting joypixels no matter the value I set in fonts.fontconfig.defaultFonts.emoji
<jtojnar> and I tried with defaults in 52, as well as in 69
<worldofpeace> So I think anything in 60-69 doesn't take precedence over user defined settings
<samueldr> I have color emoji working in some apps already, I don'T want to diminish your work, but what's missing? https://stuff.samueldr.com/screenshots/2019/08/20190828205907.png
<samueldr> I think I'm only missing Qt apps
<samueldr> oh, I just grepped in my config and I have fontconfig.localConf with some settings, I guess that would do it
<jtojnar> samueldr: we cannot choose which font will be used
<worldofpeace> So if we default install Noto it takes precedence over any other font installed, I think users should be able to override that with their own preference. Is it that we've introduced that same case for JoyPixels?
<samueldr> oh, the work you're doing would allow selecting which font? great :_)
<samueldr> :)*
<worldofpeace> And Gnome would have a default emoji font out the box samueldr
<jtojnar> worldofpeace: yup, JoyPixels will take lead with https://github.com/NixOS/nixpkgs/pull/67663
<{^_^}> #67663 (by jtojnar, 40 minutes ago, open): fontconfig: add support for JoyPixels font
<samueldr> already using ibus' one 🍇
<samueldr> (though... is ibus even a thing on wayland?)
<worldofpeace> I think samueldr, GDM tries to start the ibus daemon
drakonis_ has joined #nixos-dev
<worldofpeace> jtojnar: The ordering seems to be distinctly different in #67663 JoyPixels patch, we have https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/c41c9220181b203d1cf1f6435f6e3735cb7c84ac right?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/67663 (by jtojnar, 45 minutes ago, open): fontconfig: add support for JoyPixels font
<jtojnar> worldofpeace: no, that is just in dev version of fontconfig
<worldofpeace> jtojnar: we are at 2.12.6 (how old), that's in 2.12.91
<jtojnar> it's weird they have RC for unstable versions
pie_ has joined #nixos-dev
<jtojnar> oh, 2.13 is stable series
<ivan> somehow bumping libuv from 1.30.1 to 1.31.0 broke my LLVM 7 in some arcane where it can't find libstdc++.so.6 sometimes, good luck to whoever does this in nixpkgs in the future
<ivan> some arcane way
<{^_^}> #53759 (by Synthetica9, 32 weeks ago, open): fontconfig: 2.12.6 -> 2.13.1
<worldofpeace> jtojnar: right, though I'm having strong doubt that'd touch the release at this point
<jtojnar> worldofpeace: the option does effect after all: defaultFonts.emoji = [ "Noto Color Emoji" ] → https://paste.gnome.org/p2e97fz6x
<jtojnar> defaultFonts.emoji = [ ]; (uses from the values from uppatched fontconfig) https://paste.gnome.org/pvfyvhjwx
drakonis has joined #nixos-dev
<jtojnar> it just thinks JoyPixels is bestest choice in both cases
<worldofpeace> Isn't it unfree?
<jtojnar> worldofpeace: fontconfig don't care
<jtojnar> bah `env FC_DEBUG=3` too verbose
<worldofpeace> jtojnar: oh 😁️, I thought you were considering having it default
<worldofpeace> for sure the colors and intensity is much better
<jtojnar> I just really dislike Noto
<jtojnar> and there are not many alternatives
<worldofpeace> True, and I think most distros are stuck with it
<worldofpeace> I don't think it's factual actually
<jtojnar> it would be nice to have a XSLT stylesheet that would just spit out single merged XML
<worldofpeace> That would be very nixos'y. Not sure if they support that though
<jtojnar> that corresponds to what I saw in the debug output
<worldofpeace> The bit explaning how fontconfig evaluates things?
<worldofpeace> * explaining
<jtojnar> yup, the alias & prefer part
<jtojnar> Match Pattern has 27 elts (size 32)
<jtojnar> family: "Noto Color Emoji"(w) "JoyPixels"(s) "Emoji Two"(s) "Emoji One"(s) "Noto Color Emoji"(s) "Apple Color Emoji"(s) "Segoe UI Emoji"(s) "Twitter Color Emoji"(s) "EmojiOne Mozilla"(s) "Noto Emoji"(s) "Android Emoji"(s) "emoji"(s) "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Nimbus Sans"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International
<jtojnar> "(w) "Tahoma"(w) "Nachlieli"(w) "Lucida Sans Unicode"(w) "Yudit Unicode"(w) "Kerkis"(w) "ArmNet Helvetica"(w) "Artsounk"(w) "BPG UTF8 M"(w) "Waree"(w) "Loma"(w) "Garuda"(w) "Umpush"(w) "Saysettha Unicode"(w) "JG Lao Old Arial"(w) "GF Zemen Unicode"(w) "Pigiarniq"(w) "B Davat"(w) "B Compset"(w) "Kacst-Qr"(w) "Urdu Nastaliq Unicode"(w) "Raghindi"(w) "Mukti Narrow"(w) "malayalam"(w) "Sampige"(w) "padmaa"(w) "Hapax Berbère"(w) "MS Gothic"(w) "UmePlus P G
<jtojnar> othic"(w) "Microsoft YaHei"(w) "Microsoft JhengHei"(w) "WenQuanYi Zen Hei"(w) "WenQuanYi Bitmap Song"(w) "AR PL ShanHeiSun Uni"(w) "AR PL New Sung"(w) "MgOpen Modata"(w) "VL Gothic"(w) "IPAMonaGothic"(w) "IPAGothic"(w) "Sazanami Gothic"(w) "Kochi Gothic"(w) "AR PL KaitiM GB"(w) "AR PL KaitiM Big5"(w) "AR PL ShanHeiSun Uni"(w) "AR PL SungtiL GB"(w) "AR PL Mingti2L Big5"(w) "MS ゴシック"(w) "ZYSong18030"(w) "TSCu_Paranar"(w) "NanumGothic"(w) "Un
<jtojnar> Dotum"(w) "Baekmuk Dotum"(w) "Baekmuk Gulim"(w) "KacstQura"(w) "Lohit Bengali"(w) "Lohit Gujarati"(w) "Lohit Hindi"(w) "Lohit Marathi"(w) "Lohit Maithili"(w) "Lohit Kashmiri"(w) "Lohit Konkani"(w) "Lohit Nepali"(w) "Lohit Sindhi"(w) "Lohit Punjabi"(w) "Lohit Tamil"(w) "Meera"(w) "Lohit Malayalam"(w) "Lohit Kannada"(w) "Lohit Telugu"(w) "Lohit Oriya"(w) "LKLUG"(w) "FreeSans"(w) "Arial Unicode MS"(w) "Arial Unicode"(w) "Code2000"(w) "Code2001"(w) "sans-
<jtojnar> serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w)
<jtojnar> we see <prefer>s … "emoji" … <accepts>s
<jtojnar> I wonder what the (w) means
aanderse has quit [Excess Flood]
aanderse has joined #nixos-dev
<jtojnar> worldofpeace: the docs are inadequate
<jtojnar> the (w) means weak and (s) strong bindings
<jtojnar> with `binding=same` it finally works https://paste.gnome.org/pgegzeejz
<worldofpeace> jtojnar: Where did you find the docs for that? Literally couldn't find this
<jtojnar> worldofpeace: I just guessed
<worldofpeace> jtojnar: good guess, I though maybe it was like font weight or like width
<worldofpeace> * thought
<jtojnar> and it fits "There is one special case to this rule; family names are split into two bindings; strong and weak. Strong family names are given greater precedence in the match than lang elements while weak family names are given lower precedence than lang elements. This permits the document language to drive font selection when any document specified font is unavailable. "
<jtojnar> in the font matching section
<jtojnar> worldofpeace: https://paste.gnome.org/pokuhid7s
<jtojnar> something else to add to the commit message?
<worldofpeace> I think linking to that comment in the commit message isn't a really reliable source
<worldofpeace> What they quote directly is in the man page https://linux.die.net/man/5/fonts-conf
<worldofpeace> hmm, someone already considered using "strong" https://github.com/NixOS/nixpkgs/issues/9110#issuecomment-127650850
<worldofpeace> ttuegel seemed a bit against it, but the issue appeared to re-appear
<worldofpeace> Ahh wait we're using "same", this should be fine then.
<jtojnar> added:
<jtojnar> By default, we will set the option to all emoji fonts supported by fontconfig,
<jtojnar> so that emoji works for user if she has at least one emoji font installed.
<jtojnar> If she has multiple emoji fonts installed, we will use the fontconfig’s
<jtojnar> order of preference [3].
<worldofpeace> Sounds right 👍️, only personal nit is that I use gender neutral tone in commits "they".
<jtojnar> worldofpeace: the comment, unlike the manpage explains what happens when there are multiple <alias> elements
<jtojnar> the strong × same is something I have been wondering about, will read the thread
<worldofpeace> jtojnar: I'd quote the comment or translate it then. It's good to have all the context just there.
<worldofpeace> jtojnar: Great, now we wait for wider approval.
drakonis has quit [Quit: WeeChat 2.5]
drakonis has joined #nixos-dev
drakonis_ has quit [Ping timeout: 250 seconds]
orivej has joined #nixos-dev
justanotheruser has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos-dev
johanot has joined #nixos-dev
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-dev
Jackneill has joined #nixos-dev
__monty__ has joined #nixos-dev
<niksnut> gchristensen: what filesystem do the packet builders use?
<gchristensen> niksnut: they use a ZFS stripe across all the disks in the machine
hyperfekt has joined #nixos-dev
cjpbirkbeck has joined #nixos-dev
<clever> gchristensen: how was it installed? the packet scripts dont support that, last i checked
<gchristensen> clever: speaking of which, given the ability to specify the "customdata" in this example, are you able to make all the tweaks you need? https://gist.github.com/grahamc/3c9649b5b29a6a4166950a3b391d72e8
<clever> gchristensen: your mounting the ESP partition sdb1 to /boot/efi, but that leaves /boot as a dir on /, which is now zfs, which has stablity problems
<clever> the ESP would have to be moved up to /boot/ to be stable
<clever> gchristensen: theres also the recent util samueldr has been working on, which may help here
<gchristensen> clever: beyond that problem, which is fixable with CPR
<gchristensen> I've seen it :)
<gchristensen> it looks great
<gchristensen> but are there other problems with the flexibility of this format?
<clever> gchristensen: customdata.cpr_zfs.pools.npool.vdevs, how do you specify if you want raidz1, mirror, or stripe?
<gchristensen> great question
<clever> what if i want 3 mirrors over 2 disks each?
<clever> also, if you are using raid/mirror, the partitions should be the same size, any that are bigger just waste space
<clever> i try to solve that, by using swap to take up the slack
<clever> sda is boot+swap+zfs
<clever> sdb is swap+zfs
<clever> but now, the size of sdb's swap is bigger then sda's swap
<clever> i would do something like boot is 512mb, sda-swap is 7.5gig, sdb-swap is 8gig
<clever> so, i would want sda3 (zfs) to be max-sized
<clever> then sdb2 (zfs) to match sda3, and sdb1 (swap) to take up the slack
<clever> cpr supports 0 to take up the slack, but it doesnt allow a partition on one device to match one on another that was taking up slack
<clever> so i would have to set the second swap to be boot+1st-swap ?
<gchristensen> clever: https://gist.github.com/grahamc/374e7f39a9a0600e3568a213a18e85e3 here is a raidz3 and mirror . partitioning decisions are yours to make in CPR
<clever> part of the issue is knowing the size of the disks ahead of time, to specify it properly
<clever> and why is sdb the boot disk, not sda?
<clever> i have also seen machines fail to boot, because the letters changed between reboots
<gchristensen> I know
<gchristensen> but that is up t Packet to make right. the sdb being the boot disk is what they told me it would be
<gchristensen> are there *flexibility* issues with this format?
<clever> what if i want 2 mirrors?
<gchristensen> then you can do that
<clever> ah, its a list
<clever> so i can just duplicate 85-89, and add a second { mirror = [ ]; }
<gchristensen> yep
<clever> so it would be vdevs = [ { mirror = ["/dev/sda" "/dev/sdb"]; } { mirror = ["/dev/sdc" "/dev/sdd" ]; } ];
orivej has quit [Ping timeout: 248 seconds]
<gchristensen> yep
<clever> that latest one should work
<clever> also, have you looked into how sfdisk compares to sgdisk?
<gchristensen> I haven't :)
<gchristensen> the sgdisk stuff is what upstream assumes, so I wanted to stick to their assumptions
<clever> ive been using sfdisk for my partitioning
<clever> it can print a partition table out in the same format it accepts on stdin
<clever> line 74 of justdoit omits the size for partition 3, which causes it to just take all that remains
<clever> gchristensen: the rest of your gist looks good, just the /boot/efi problem that is still there
<gchristensen> yeah
<gchristensen> cool, thank you :)
tilpner_ has joined #nixos-dev
tilpner has quit [Read error: Connection reset by peer]
<gchristensen> when people add their GPG key, we should probably check that the commit adding the key matches the key ID they add, right?
orivej has joined #nixos-dev
psyanticy has joined #nixos-dev
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #nixos-dev
cjpbirkbeck has quit [Quit: Quitting now.]
cjpbirkbeck has joined #nixos-dev
johanot has quit [Quit: WeeChat 2.4]
drakonis_ has joined #nixos-dev
drakonis has quit [Ping timeout: 246 seconds]
__monty__ has quit [Quit: leaving]
<gchristensen> btw everyone I'm going to be on vacation starting next Tuesday for like 10 days
<aanderse> enjoy :)
<andi-> we are all gonna die /o
<gchristensen> it is good practice to see what my bus factor is like
<gchristensen> before the great bus in the sky comes
<aanderse> doing something fun, right?
<gchristensen> swimming and reading at a cabin on a small island in a lake, with no cell phone, computer, internet, or electricity =)
orivej has quit [Ping timeout: 258 seconds]
<aanderse> nice
<gchristensen> if there is a catastrophe, samueldr, andi-, and niksnut know how to reach out to me -- I'll check messages every few days when I go to the grocery store
Synthetica has joined #nixos-dev
aanderse has quit [Remote host closed the connection]
aanderse has joined #nixos-dev
abbradar has quit [Ping timeout: 248 seconds]
orivej has joined #nixos-dev
abbradar has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
evanjs has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
drakonis_ has joined #nixos-dev
evanjs has joined #nixos-dev
drakonis has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-dev
orivej has quit [Ping timeout: 248 seconds]
drakonis has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos-dev
drakonis_ has quit [Ping timeout: 252 seconds]
evanjs- has joined #nixos-dev
evanjs has quit [Ping timeout: 268 seconds]
justanotheruser has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos-dev
evanjs- has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
evanjs has joined #nixos-dev
<andi-> could someone please kill https://hydra.nixos.org/build/99509646 ?
<samueldr> hm, I don't have th option to, andi-
<andi-> I feel like I should write that hydra patch…
drakonis_ has joined #nixos-dev
drakonis has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos-dev
<psyanticy> can anyone share an example of `buildFHSUserEnv`. thanks
drakonis has quit [Quit: WeeChat 2.5]
<samueldr> niksnut, gchristensen, nixos-homepage#209 is hopefully ready
<{^_^}> https://github.com/NixOS/nixos-homepage/pull/209 (by samueldr, 1 year ago, open): [big!] Adds a completely re-made packages listing (explorer).
<andi-> samueldr: is it intentionally slower? I guess you have some kind of typing timeout?
<samueldr> hm?
drakonis has joined #nixos-dev
<andi-> the old page completes almost instantly on the first character while the new version seems to wait for ~200ms?
<samueldr> right, it has no leading edge debounce
<andi-> Maybe I am the only one but I kinda liked that :D
<samueldr> I could add it back, but having it without debounce makes it slow down extremely
<samueldr> so it'd stilll have that delay at the last character typed
drakonis_ has quit [Ping timeout: 264 seconds]
<samueldr> in *most* cases that first typed character is not the intended results though
<samueldr> (but I do agree it makes it seem less responsive)
<psyanticy> @makefu @ ivan thanks alot
<psyanticy> @ivan
drakonis has quit [Ping timeout: 252 seconds]
<jtojnar> samueldr: could you perhaps start a spinner when user starts typing but keep debounce for actual loading?
<samueldr> jtojnar: that's a fine alternative
<samueldr> though in other jobs I've had a similar situation
<samueldr> where the *presence* of a loading indicator made users think it was slower -_-
<samueldr> it was under 1s both implementations, and I think the one with the spinner was either equal or faster (I don't remember the details)
<samueldr> but the one with the load indicator showed feedback for the load instantly, while the other just hung the app for the same amount of time :/
<jtojnar> samueldr: what is the bottleneck? would the performance improve if we cached https://github.com/NixOS/nixos-homepage/pull/209/files#diff-9fece4f16a63c96b470074a9456da53fR37-R48?
<samueldr> thanks github... I have marked files as "viewed" so that link links to a page with folded files and no idea which file you linked to :/
<samueldr> jtojnar: which file?
<jtojnar> samueldr: the part where everything is lowercased over and ovr again
<jtojnar> refilter.js
<samueldr> (I'm glad people finally are looking at the code... but it seems a tad "late" :/)
<samueldr> this is a 1:1 translation of the existing filtering
<samueldr> I think I looked at a profiling of the app and the bottleneck was (as often is) DOM manipulation
<samueldr> jtojnar: thanks for looking
Jackneill has quit [Remote host closed the connection]
tilpner_ is now known as tilpner
drakonis has joined #nixos-dev
<worldofpeace> jtojnar: so the issue in https://github.com/NixOS/nixpkgs/pull/67667#issuecomment-526164773 was just the name of the font right?
<jtojnar> worldofpeace: no, the name is the same
<jtojnar> fontconfig just does not consider the font color because it uses SVG-in-OpenType format
<jtojnar> instead of the supported CBDT
<worldofpeace> Ah right, just like Emoji One
aminechikhaoui has quit [Quit: The Lounge - https://thelounge.github.io]
aminechikhaoui has joined #nixos-dev
psyanticy has quit [Quit: Connection closed for inactivity]
<worldofpeace> jtojnar: https://github.com/NixOS/nixpkgs/pull/67667#discussion_r319232521 changes it to gnome3 module having a default emoji font, to having a default one everywhere.
<worldofpeace> We'd hard depend on https://github.com/NixOS/nixpkgs/pull/67529
<{^_^}> #67529 (by worldofpeace, 2 days ago, open): nixos/fontconfig-penultimate: disable by default
cjpbirkbeck has quit [Quit: Quitting now.]
mrnux has joined #nixos-dev
drakonis_ has joined #nixos-dev
<jtojnar> worldofpeace: I would just merge it on Sunday if there are no objections
<jtojnar> we should strive to be as vanilla as possible
pie_ has quit [Ping timeout: 252 seconds]
<gchristensen> what dose it mean for everywhere to have a default one?
<gchristensen> (will servers and embedded devices have one too?)
<jtojnar> gchristensen: everyone who enables fonts.enableDefaultFonts
<gchristensen> nice
<jtojnar> gchristensen: I am still not sure if we will do that, though. See https://github.com/NixOS/nixpkgs/pull/67667/files/d131a768729ac972ffe657ddbc1d849583a868d0#discussion_r319215391
<jtojnar> especially since the fonts are huge
<jtojnar> hmm, it's not that bad actually twitter-color-emoji 2.7M
<jtojnar> ugh noto 7.9M
<jtojnar> bleh joypixels 21.9M
orivej has joined #nixos-dev
mrnux has quit [Remote host closed the connection]
<worldofpeace> 7.9 doesn't seem too bad, and it's not for servers anyway. Think the default fonts are enabled only for xserver
<worldofpeace> jtojnar: "I would just merge it on Sunday if there are no objections", yeah I agree
ixxie has joined #nixos-dev
Synthetica has quit [Quit: Connection closed for inactivity]
Jackneill has joined #nixos-dev
ixxie has quit [Ping timeout: 272 seconds]
Jackneill has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 248 seconds]
drakonis has joined #nixos-dev
<jtojnar> worldofpeace: anything blocking https://github.com/NixOS/nixpkgs/pull/67363?
<{^_^}> #67363 (by worldofpeace, 6 days ago, open): dbus: don't make datadir /etc, set runstatedir to /run
<worldofpeace> jtojnar: don't think so. We tested it well.
evanjs has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
evanjs has joined #nixos-dev
evanjs has quit [Remote host closed the connection]
pie_ has joined #nixos-dev
evanjs has joined #nixos-dev
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-dev
drakonis has quit [Ping timeout: 245 seconds]
drakonis has joined #nixos-dev