gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
__monty__ has quit [Quit: leaving]
tilpner_ has joined #nixos-chat
tilpner has quit [Ping timeout: 265 seconds]
tilpner_ is now known as tilpner
cjpbirkbeck has joined #nixos-chat
parsley936 has quit [Remote host closed the connection]
drakonis_ has joined #nixos-chat
drakonis2 has quit [Ping timeout: 244 seconds]
evanjs- has joined #nixos-chat
evanjs has quit [Ping timeout: 256 seconds]
evanjs- has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-chat
slack1256 has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis_ has quit [Ping timeout: 260 seconds]
slack1256 has quit [Remote host closed the connection]
drakonis_ has joined #nixos-chat
drakonis1 has quit [Ping timeout: 260 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
drakonis has quit [Quit: WeeChat 2.8]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis_ has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos-chat
drakonis has quit [Ping timeout: 260 seconds]
<eyJhb> Sooo many joins and leaves
parsley936 has joined #nixos-chat
liff has joined #nixos-chat
<sphalerite> for p in $(pgrep ffmpeg) ; do pos=$(grep pos /proc/$p/fdinfo/3 | awk '{ print $2 }') ; size=$(stat -c %s -L /proc/$p/fd/3); percent=$((pos * 100 / size)); printf '% -60s %2d%% [% -100s]\n' "$(readlink /proc/$p/fd/3):" $percent $(printf "=%.0s" $(seq $percent) )\> ; done
<sphalerite> why am I doing this
<adisbladis> I don't even
<sphalerite> joepie91: maybe I should have used your data visualisation thing instead.
<sphalerite> adisbladis: fwiw: shows rough progress on a multitude of ffmpeg processes.
<sphalerite> with progress bars
<adisbladis> sphalerite: That's what I was guessing
<adisbladis> Still, very code golfy
<sphalerite> I originally tried using pv, but it doesn't support monitoring multiple processes
<sphalerite> is that really golfy?
<adisbladis> A bit =)
<sphalerite> I certainly didn't make it deliberately short
<sphalerite> ugly, sure, but golfy not so much :D
<adisbladis> This is why I can't stand bash
<talyz> sphalerite: It's as beautiful as bash gets ;)
<sphalerite> well, it could do with some line breaks and indentation
<adisbladis> Nah
<adisbladis> I know what it needs
<adisbladis> eval $(echo "Zm9yIHAgaW4gJChwZ3JlcCBmZm1wZWcpIDsgZG8gcG9zPSQoZ3JlcCBwb3MgL3Byb2MvJHAvZmRpbmZvLzMgfCBhd2sgJ3sgcHJpbnQgJDIgfScpIDsgc2l6ZT0kKHN0YXQgLWMgJXMgLUwgL3Byb2MvJHAvZmQvMyk7IHBlcmNlbnQ9JCgocG9zICogMTAwIC8gc2l6ZSkpOyBwcmludGYgJyUgLTYwcyAlMmQlJSBbJSAtMTAwc11cbicgIiQocmVhZGxpbmsgL3Byb2MvJHAvZmQvMyk6IiAkcGVyY2VudCAkKHByaW50ZiAiPSUuMHMiICQoc2VxICRwZXJjZW50KSApXD4gOyBkb25lCg==" | base64 -d)
<adisbladis> Much better
<sphalerite> lol
<talyz> :D
<eyJhb> 10/10 simple code, eval, echo, base64
<eyJhb> Three simple commands
<makefu> n
<etu> sphalerite: But pv can draw several progressbars
<etu> sphalerite: So it can probably be used
<makefu> wupps
<sphalerite> etu: yes, but it refuses :(
<sphalerite> that is, it won't monitor multiple processes. Maybe I should open an issue about it.
cocreature has left #nixos-chat ["WeeChat 2.6"]
<sphalerite> I wonder if I should disable logging refused connections on my internet-facing machines. It's just noise, really…
<eyJhb> sphalerite: Much more fun to log refused connection on anything in a datacenter range
<eyJhb> What are people using for mail? mutt?
<sphalerite> eyJhb: like Hetzner servers? Yeah that's what I mean
<sphalerite> eyJhb: notmuch + emacs
<eyJhb> sphalerite: Disable logging of that, generally logging in those kind of places gets flooded... SSH logins as well...
<eyJhb> Thinking notmuch + neomutt. But I guessed many use emacs
<eyJhb> Still hate that it is near impossible to get Office 365 with 2FA to work on Linux...
<evax> eyJhb: bower (known as notmuch-bower in nixpkgs) works very well for me
<talyz> eyJhb: evolution
<talyz> i.e., I've given up
<sphalerite> I heard evolution is good nowadays
<sphalerite> not sure whether to believe it or not though
<talyz> yeah, I'm honestly pretty happy with it
<talyz> the calendar and address book isn't great, but the mail stuff works well
<talyz> and it has gpg integration out-of-the-box, which is nice
<eyJhb> talyz: currently using Thunderbird :p Tired of it, want to try something cli based
<eyJhb> Lets see if I can use any of them
<talyz> eyJhb: ah, okay :)
__monty__ has joined #nixos-chat
<__monty__> Hmm, interesting, https://github.com/fatedier/frp
<__monty__> Not sure I want to know about the security implications though.
<MichaelRaskin> Not sure if worse than carelessly configured Nginx
<eyJhb> What was the other service that allowed for something similar?
<adisbladis> ngrok ?
<eyJhb> Something you could easily host yourself, I think it was branded as some VPN stuff
<eyJhb> Not ngrok sadly :p
<eyJhb> :/*
<MichaelRaskin> badvpn?
<MichaelRaskin> It had tun2socks
<adisbladis> eyJhb: OpenSSH? :P
<lassulus> zerotier?
<eyJhb> I think zerotier is what I was thinking of yes, or close to what I meant
<eyJhb> I should really get this report done... Due on wednesday :(
ravndal has quit [Quit: WeeChat 2.8]
cole-h has quit [Quit: Goodbye]
<joepie91> sphalerite: heh. it doesn't do in-progress visualization yet though, just "dump output after process completion" for now
<eyJhb> Anyone notice that MS Teams does facial recognition?
nk3 has quit [Quit: leaving]
<joepie91> __monty__: eyJhb: localtunnel is also one
cjpbirkbeck has quit [Quit: cjpbirkbeck]
cjpbirkbeck has joined #nixos-chat
<__monty__> Clearly I should collect these in some sort of list, so many options.
bqv has quit [Ping timeout: 260 seconds]
bqv has joined #nixos-chat
manveru has quit [Ping timeout: 260 seconds]
peel has quit [Ping timeout: 260 seconds]
aria has quit [Ping timeout: 260 seconds]
peel has joined #nixos-chat
aria has joined #nixos-chat
manveru has joined #nixos-chat
<__monty__> Start of a list: https://git.io/JfVw1
drakonis1 has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
<eyJhb> IT WAS TINC!
<__monty__> Tinc doesn't do any NAT traversal.
<genevino> ah that vpn daemon with the weird war helicopter as a logo
<genevino> i used tinc heavily back then
<gchristensen> hm... can you not mount a cpio/
<gchristensen> bummer.
<sphalerite> gchristensen: you probably can with gvfs :p
<MichaelRaskin> or archivemount, I guess
<gchristensen> hehe
monsieurp has joined #nixos-chat
<bqv> i used tinc until a month or so ago when i switched to wireguard
<bqv> but it's been the most convenient thing until that for me for many years
<__monty__> Does wireguard provide mesh routing though?
<bqv> and tbh even wireguard doesn't ^ yeah, that
<bqv> but for the most part i don't need mesh routing
<bqv> at the moment
<bqv> wheel and spoke architecture
<__monty__> Sure but imo that's what makes tinc special. Wireguard's just encrypted point-to-point tunnels, right?
<bqv> i'm looking at the easy set up of virtual networks, mainly
<bqv> tinc and wireguard are the best at that
<bqv> add a link in seconds
<bqv> adisbladis: you know i went through a phase where sshing into my desktop would drop me into emacsclient, rather than a normal shell
<bqv> only reason i stopped that was cause i started extensively using vterm
<bqv> so it became a bit pointless
<__monty__> bqv: Tailscale looks even easier to setup tbh.
<__monty__> They use wireguard and mesh routing when possible.
<bqv> __monty__: sure but centralisation and slightly proprietary, no?
<sphalerite> I don't like how tailscale is IPv4-only
<sphalerite> and that
EatThem has joined #nixos-chat
<__monty__> bqv: How do you traverse NAT in your setup though? Just go through a VPS?
<bqv> like i said, wheel and spoke architecture
<bqv> i have at least one server with public ip
<bqv> and always have done for more than a decade now, reasonable to expect i always will
<__monty__> sphalerite: I know, proprietary solutions are usually more polished though. And the do have a free tier.
<bqv> :/
<__monty__> I still happily use toxvpn.
<__monty__> I need the NAT traversal so don't have many options.
<bqv> yeah
<viric> the world needs more nat traversal everywhere
<__monty__> Or just less IPv4.
<viric> that's not happening
<bqv> oh neat, toxvpn is made by clever
<bqv> also looks very cool
<__monty__> Surely we can convince some of those 5G conspiracy theorists that IPv*4* is the actual problem?
<viric> clever: ah you wrote toxvpn?
<bqv> ipv4 causes coronavirus, you heard it here first
<viric> I have troubles with toxav...
<viric> I was debugging them yesterday. Not conclusive.
<clever> viric: yeah
<viric> clever: it sets up vpx to 2500kbps but, effectively, in my LAN, it uses 25KB/s (~250kbps)
<viric> I don't know why it doesn't transfer more.
<clever> ive not looked at the toxav side of things much
<viric> clever: I also dislike how qtox (does any client) does not report anything about whether the connection is tunneled or not
<sphalerite> viric: not with that attitude, it's not!
<clever> viric: the toxcore library can only report tcp or udp for the overall connection, and nothing more
<viric> clever: right, very poor. It's difficult to debug whether the network is setup properly.
<viric> clever: no indication of packet loss at all either.
<viric> or bitrate or anything.
waleee-cl has joined #nixos-chat
<emily> sphalerite: ugh, is it really v4-only?
<emily> I knew apenwarr hated v6 but not that much
<__monty__> They have open issues on implementing it for both p2p connections and to carry it across the tunnel.
<viric> clever: what tox clients do you use?
<viric> clever: I was about to update libtoxcore+qtox for master
<clever> viric: currently, only toxvpn
<clever> nobody i chat with uses it, so i dont use a client much
<viric> ok
<viric> :)
<sphalerite> __monty__: wait they don't even support it as a transport? pfffff
<__monty__> I liked toxic when I checked out tox with a friend. Worked pretty well but ditto on the no one to talk to : )
<__monty__> sphalerite: I assume they just wanted to get an MVP to market.
<emily> guessing https://apenwarr.ca/log/20110328 https://apenwarr.ca/log/20170810 played a part in that prioritization though
<emily> marked https://github.com/tailscale/tailscale/issues/18 as applying to "Almost no one" >.>
<{^_^}> tailscale/tailscale#18 (by bradfitz, 14 weeks ago, open): Support connecting over IPv6 or IPv6-to-6to4
<makefu> emily: i actually have to have ipv6 explicitly deactivate to make some old random software work when rj45 is connected ... that was a sad day when i realized it
<emily> you know, the one good thing about modern mobile internet connections is that they make people deal with v6
<makefu> or enterprise-grade NAT
<makefu> s/enterprise/carrier/
<bqv> it depresses me that there are things that still only support ipv4
<bqv> i've had ipv6 at home for several years now
<bqv> hey wait, it's just occured to me what that means...
* emily has a /48 from her ISP ^^
<emily> what I'd really like is some ISP-independent addreses, but I'm not sure I'm ready to become an AS just yet ;w;
<bqv> emily: what country?
<emily> UK (sadly), https://www.zen.co.uk/
<bqv> oh, neat. i'm on sky
<bqv> static ip
<bqv> hmm
<bqv> maybe we should switch
<emily> it's the cursed G.fast "let's do 300 Mbit/s download over VDSL, why not" thing
endformationage has joined #nixos-chat
<emily> I've had good experiences, had to explicitly opt-in to IPv6 but everything's smooth, connection is stable, support is good, even the bundled router/AP is pretty decent (they give you a fritzbox)
<emily> was also considering A&A but they had worse speed at higher cost
<bqv> neat
<bqv> yeah i think i considered A&A many years ago back when i had housemates
<bqv> they were uncooperative
<adisbladis> UK.. The place where they call coax cable fibre...
<bqv> i think i'll genuinely switch to zen
<bqv> adisbladis: ha
<bqv> emily: hang on, that's insanity
<emily> zen and A&A are also some of the few ISPs that don't, like, block thepiratebay or whatever
<bqv> for 2 pounds extra i'd get double the speed
<bqv> and a static ip
<bqv> yeah i'm switching right now
<emily> bqv: if that's the case then you could probably get a better deal from Sky or Virgin too, but yeah they're a lot more competitive without new-customer discounts :P
<bqv> virgin can take their **** and shove it up their ********
<bqv> i'm done with them forever
<emily> I grimaced a bit at the extra cost I was paying because of the deep new-customer discounts other providers give, but I've dealt with crappy UK ISPs way too much
<bqv> but nah i like the idea of getting a far better deal from zen
<bqv> and i'm bad at haggling
<emily> (re the blocking: the rule is "if you have the technical capacity or above a certain size, you must comply with our annoying filtering rules")
<emily> (so the Good ISPs just choose to not build out any infrastructure for it :P)
<bqv> lol
<sphalerite> bqv: but would they still be vir— I should really learn to shut up sometimes.
<adisbladis> emily: Are there actually good UK ISPs?
<sphalerite> adisbladis: this A&A thing sounds good based on their website
<emily> adisbladis: pretty much, you can get real fibre if you're in a few cities and that's about it
<emily> adisbladis: A&A and Zen are pretty great!
<bqv> emily: want me to say i was referred by you?
<emily> you're still dealing with the limitations of the Openreach/TalkTalk/whatever backbone but they do a very good job with the conditions
<emily> bqv: heh, do they actually have a referral program? I didn't realize
<bqv> yeah it's asking me for a name
EatThem has quit [Quit: Leaving]
<bqv> oh, nvm, i'm gonna have to call to order anyway because covid
<emily> (/msg'd)
<emily> I guess technicians might not even be coming out right now for installations
<emily> the G.fast stuff required a home visit
<emily> it's kind of awkward: the fritzbox they give you doesn't support g.fast, even though there are fritzboxes that do, so you have to use the openreach/huawei modem black box with it
<emily> the reason is that because of $regulations the router you provide needs to be Certified™ and the g.fast ones aren't
monsieurp has quit [Quit: leaving]
monsieurp has joined #nixos-chat
<bqv> hmm okay, so i can order online, it's just that i do in fact need to pay line rental
<bqv> ..still only 7 quid extra, i reckon it's worth it for the Boons
monsieurp has quit [Client Quit]
hoverbear has joined #nixos-chat
hoverbear has quit [Client Quit]
monsieurp has joined #nixos-chat
hoverbear has joined #nixos-chat
<emily> worst case you can always call up sky, tell them about your very imminent and concrete plans to leave, and probably get a new customer discount for another year or whatever
<joepie91> lol
numkem has joined #nixos-chat
<hoverbear> I find myself testing nix on freebsd this morning
<MichaelRaskin> Ohhhh interesting
<hoverbear> I am not sure if I should expect it to work or not
monsieurp has quit [Remote host closed the connection]
<hoverbear> Excellent: "sh: sorry, there is no binary distribution of Nix for your platform"
<bqv> true
<adisbladis> hoverbear: I'm guessing you've seen https://github.com/0mp/freebsd-ports-nix
<hoverbear> adisbladis: Literally just fired up a FreeBSD VM and started following our install instructions but trying to use nix for it
<hoverbear> So no :)
<adisbladis> Right :)
<hoverbear> This is insteresting...
<hoverbear> Okay so I'm going to mark this as a "Future work" for me I think since there is no binary distribution of Nix for FreeBSD I'm going to presume the # of users is minimal.
<adisbladis> I've heard of a big company running Nix on Freebsd in production
<adisbladis> They seemed to have a lot of stuff in private repos
<hoverbear> Yeah, "Big companies who don't share back" aren't really on my list of highly desirable users. :)
<pie_> hoverbear: btw #freebsd-nix is a thing
<hoverbear> Oh yay
<pie_> not very active but it exist
<pie_> wait what <adisbladis> I've heard of a big company running Nix on Freebsd in production
<emily> adisbladis: uh, now I'm curious
<adisbladis> This was in casual conversation, and I was sleep deprived so I can't remember many details
<adisbladis> But an engineer 3-D Secure (or whatever the company managing/developing that is called) said they're using it
<adisbladis> Also for declarative jails
<emily> wild
drakonis has joined #nixos-chat
<emily> I find it hard to imagine using Nix &co. in such depth without interacting with the upstream at all
<emily> maybe partly because the docs aren't great >_>
<hoverbear> Same
<hoverbear> Nixos with a freebsd core would be sweet though
<pie_> wonder if they have any suspicious job ads :)
<adisbladis> It's been annoying me for months that I can't remember the name of the guy I talked to
<hoverbear> Have you considered you might have been dreaming?
<adisbladis> hoverbear: CCC feels like a bit of a dream, but pretty sure ;)
<hoverbear> adisbladis: Been to several and I can confirm: Mostly lucid
<drakonis> hoverbear: gonna need a lot of package patching here
<hoverbear> adisbladis: I'm looking at https://github.com/NixOS/nixpkgs/pull/85604/files, wondering how I can hit the zfs storage driver?
<hoverbear> drakonis: I imagine xD
<drakonis> and freebsd using companies tend to not share the goods
<hoverbear> MIT blah blah
<drakonis> BSD license in this case
<hoverbear> Oh yes
<MichaelRaskin> emily: if they can build that, probably they have enough doc analysing skills for Nix* ecosystem
<emily> I feel like they'd also have enough skills to quickly run into bugs they'd want to report or patches they'd want to make, too
<drakonis> nix doesnt seem to require a lot of patches to run on freebsd
<drakonis> ever so interesting
<drakonis> the real challenge is nixpkgs
<hoverbear> FreeBSD is a good OS with a bummer init system
<adisbladis> hoverbear: Letas port systemd to freebsd ;)
ravndal has joined #nixos-chat
<hoverbear> Ew no what are you a sadist
<adisbladis> Ok, ok
<adisbladis> Upstart
<pie_> adisbladis: maybe you can ask around if you remember what he works on :P
<hoverbear> I think we've learnt enough lessons from systemd that we could make something less of a political disaster on wheels
<adisbladis> pie_: I've tried
<adisbladis> But no cigar
<pie_> mh
<MichaelRaskin> Don't you need RH buy-in or something?
<hoverbear> You only need RH buy in so you can pay the staff to suffer all that verbal abuse
<adisbladis> Sometimes I feel like I'm the only one who _likes_ systemd
<hoverbear> I actually rather like using the tool and the consistent UX, but I hate the way we got there
<hoverbear> I hate that it's basically been "Literal Goliath flagrantly ignored all norms and conventions and singlehandedly kills hundreds of projects"
<drakonis> hundreds might be hyperbole
<hoverbear> "Dozens of us!"
<adisbladis> A big reason for me to switch from Gentoo was having discussions around systemd with the Gentoo hardened people
<hoverbear> I mean, I got banned for saying shit on the IRC channel
<hoverbear> That's why I left.
<hoverbear> Literally, I said 'shit' and got banned.
<MichaelRaskin> A reason for me to give up and drop NixOS bootscripts was systemd breaking my workflows too often
<hoverbear> I love configuring everything in toml and having consistent naming/ux though
<MichaelRaskin> hoverbear: is it at least a consistent and announced policy?
<adisbladis> I've seen way, way wores than than in #gentoo
<adisbladis> worse*
<hoverbear> MichaelRaskin: I don't know it was a decade ago and I didn't feel like grovelling and apologizing for my crimes on their GM channel
<hoverbear> It was right around when they pushed out drobbins anyways so I don't care
<hoverbear> adisbladis: Yeah most of the chat on #gentoo was passive aggressive swipes at people so nothing of value was lost
<eyJhb> adisbladis: I hate the way that systemctl wants it arguments... systemctl <action> <service>, I want to execute one action on a service, then another. Let me do that quickly
<ldlework> haha, that's a pretty minor thing tho
<drakonis> i'm still waiting for the day that a nix lang based init appears
<drakonis> in the same vein that shepherd exists
<lassulus> a common interface which could be used by systemd, openrc or other init systems could be a first step. But then it would be hard to implement systemd-features
<aleph-> drakonis: There kinda is one
<aleph-> I'll find it in a few
<drakonis> neat
<drakonis> lassulus: it exists already
<drakonis> sander van der burg wrote one
<MichaelRaskin> lassulus: Most of the services implement basic stuff that could be clearly separated into generic launcher, and then maybe some more specific features on top
<lassulus> ah, cool, I was also thinking about that, nice that svanderburg already did something
<__monty__> I see that project brought up so often.
<__monty__> But it looks more like the start of a prototype than something actually practical.
<emily> systemd doesn't actually use toml
<emily> it's a custom ini format
<__monty__> The approach is very, offer the cross-section.
<drakonis> it requires dysnomia to work
<__monty__> I'm not sure who suggested it but a "common stuff + systemd = {}; openrc = {};" approach sounds a lot more likely to catch on. You can slowly offer more generic configuration.
hoverbear has quit [Quit: WeeChat 2.8]
<drakonis> i'd like to stll have a replacement that provides features on a per OS basis
<drakonis> but its effort
<MichaelRaskin> We need nix-darwin ported back to Linux
<drakonis> ie: if you have linux, use cgroups, namespaces, ebpf
<drakonis> whatever's available for that OS
<drakonis> freebsd has rctl and jails
<drakonis> launchd for mac
<MichaelRaskin> Well, you actually want to have exporters for various process supervisors
<drakonis> but then to use those things, it'd require a C to nixlang interface
<lassulus> I would like nixos on android ;D or have services. syntax inside shell.nix
<drakonis> would be wonderful
<MichaelRaskin> Most of the services do not really need to be related to NixOS. Or even to module system
<MichaelRaskin> They need to have connection data for their dependency services (if any), and their own fully compartmentalised configuration data
<drakonis> is this relevant?
<MichaelRaskin> Nobody knows
<drakonis> its about making the nixos modules system configurations part of the language
<MichaelRaskin> I hope it goes nowhere
<MichaelRaskin> (I am in the minority that dislikes the module system)
<lassulus> well the module system is the best type system we currently got :D
<lassulus> in nix that is
<drakonis> it'll go through the whole rfc process first
<drakonis> so it'll probably change
<MichaelRaskin> lassulus: well, I expect that language integration would freeze the typing parts
cole-h has joined #nixos-chat
<Valodim> can someone explain to me: https://nixos.org/nixpkgs/manual/#sec-fhs-environments this says "runScript" gets "passed all the command line arguments"
<Valodim> for a nix-shell call.. how do I pass those arguments? it seems to me like there's no way and I'm misunderstanding, I'm just not sure how :)
<Valodim> avoiding xy problem: what I'd like to do is "run command in an fhs environment"
<drakonis> write a script for that
<MichaelRaskin> I would write a script that nix-builds then calls the resulting environment script.
<drakonis> that bash call drops it into the environment with the packages
<drakonis> you could call bash with a command that calls something else
<drakonis> bash -c `command`
<Valodim> I can replace the value of runScript with something else, that works
<Valodim> but I'd rather not have multiple script.nix that just differ in runScript value
<Valodim> MichaelRaskin: could you elaborate on that? :)
<drakonis> i used "runScript = "bash -c 'bash --help'";" and voila
<drakonis> it invoked bash--help
<drakonis> bash --help
<drakonis> runscript invokes a shell command
<MichaelRaskin> Valodim: well, it is not based on nix-shell
<Valodim> can also do bash --help directly there, but that doesn't help me to pass arguments through the nix-shell call
<Valodim> MichaelRaskin: I'm not set on the nix-shell approach, it was just the only one I could get to work at all
<MichaelRaskin> Just a script that is basically "$(nix-build --no-out-link ./shell.nix)/bin/fhsenv" "$@"
<MichaelRaskin> I guess there is some -A
<drakonis> Valodim: it is an example
<Valodim> MichaelRaskin: that sounds very good
<Valodim> drakonis: what I'd like to do is (symbolically): nix-shell --command "bash --help"
<Valodim> however --command doesn't work with buildFHSUserEnv
<Valodim> MichaelRaskin: I'll play around with that approach, thank you
<Valodim> MichaelRaskin: I think I can get that to work! thanks a lot :)
drakonis has quit [Quit: WeeChat 2.8]
drakonis has joined #nixos-chat
monsieurp has joined #nixos-chat
<ashkitten> i updated to current nixpkgs-unstable and got told that p7zip is insecure, but it still said that after removing my inclusion of p7zip directly... it was very hard to figure out that it was winetricks depending on p7zip that was the issue
<ashkitten> is it possible to get better errors that actually point you in the right direction?
<ashkitten> at least i'm listening to good music while dealing with nix's awful error reporting
<pistache> ashkitten: mind to share that good music's name ?
<pistache> thank you
<MichaelRaskin> ashkitten: --show-trace should at least mention winetricks, I think
<viric> is p7zip insecure?
evanjs has quit [Read error: Connection reset by peer]
<MichaelRaskin> It's a complicated story
<ashkitten> i don't think it did mention winetricks
<ashkitten> or at least it was buried in all sorts of other things
evanjs has joined #nixos-chat
<pistache> ashkitten: good stuff, thanks again
<ashkitten> it's very good music
<__monty__> ashkitten: nix why-depends should be able to tell you thinks like this.
<__monty__> viric: I think I heard of some recent CVEs yes.
<viric> ahh
<viric> everything has CVEs
<__monty__> These were serious.
<MichaelRaskin> I think currently we use some patches for these CVEs
<MichaelRaskin> But well, p7zip upstream we use seems to not include them after years
<sphalerite> I think upstream is just dead
<gchristensen> ....hrm: Squashfs filesystem, little endian, version 1024.0, compressed, -4735816483156787200 bytes, 150994944 inodes, blocksize: 4096 bytes, created: Tue Jul 14 04:20:16 1970
<gchristensen> Squashfs filesystem, little endian, version 1024.0, compressed, 2090514652030042112 bytes, 50331648 inodes, blocksize: 512 bytes, created: Tue Jul 14 04:20:16 1970 ....hrm.
<ashkitten> __monty__: why-depends can't evaluate because it's insecure
<ashkitten> and i didn't want to bother temporarily adding it to allowedInsecurePackages or whatever
<__monty__> env NIXPKGS_ALLOW_INSECURE=1 nix why-depends?
<MichaelRaskin> Searching for /pkgs/ in show-trace would almost sure give you the answer quickly
<ashkitten> ah
<ashkitten> well, whatever
<ashkitten> i figured it out
<gchristensen> anyone know of a program which reverse the bytes in a file? tac operates on lines, rev too
<samueldr> gchristensen: nice time
<gchristensen> :)
<MichaelRaskin> Worse, tac | rev is not _exactly_ there (but might be close enough)
<gchristensen> not close enough :(
<gchristensen> rev: stdin: Invalid or incomplete multibyte or wide character
<MichaelRaskin> Did you set LANG=C ?
<MichaelRaskin> How large are the files, BTW
<gchristensen> mksquashfs /nix/store/srxjw9jdz49m1ffn1wjkjyc82698im7k-libSM-1.2.3 ./squish -comp gzip -Xcompression-level 9 -keep-as-directory -all-root; tac squish | tac | md5sum
<MichaelRaskin> OK, large
<gchristensen> love reversing files to defeat nix's detection of run-time deps
<MichaelRaskin> I thought rot13 is the tool of choice?
<gchristensen> on a squashfs file?
<MichaelRaskin> Wait, if you already compress it, do you need to defeat something?
<gchristensen> yeah, it seems that the nix store pat strings appear infrequnetly and don't reliably get compressed
<gchristensen> oh it might be good enough
<MichaelRaskin> bsdgames rot13 famously only touches letters
<gchristensen> ...hm tee: command not found
<sphalerite> gchristensen: shouldn't you be using tac | rev to make sure everything's properly reverse?
<sphalerite> reversed
* gchristensen shrugs
<sphalerite> tac wouldn't even break the references I think
<sphalerite> since it reverses line-by-line but not within lines
<gchristensen> right, but my qustion was for a program to reverse the bytes in a file
<MichaelRaskin> If we annoy some upstream, their builds will refer to rev-ed prefix and rot13-ed prefix
<sphalerite> oh wait I missed the mention of tac | rev before >_<
<MichaelRaskin> And to rev-ed rot13-ed prefix too, just to make sure
<sphalerite> gchristensen: alternatively, openssl aes-128-cbc ? :D
<MichaelRaskin> sphalerite++
<gchristensen> :o
<{^_^}> sphalerite's karma got increased to 91
<eyJhb> gchristensen: what are you doing? :p
<gchristensen> I'm making a lot of netboot images, and every time I make a minor change I have to remake a squashfs (a few minutes) and an initrd (a few minutes)
<eyJhb> And you need rot13, aes-128-cbc where? :D
<gchristensen> instead I've replaced the squashfs so every store path is its own squashfs, built with recursive nix, so they only have to be built once and can be reused. next, I'll change the initrd to be one big cpio build to one cpio build per store path with recursive nix, so they also can be cached between iterations
<sphalerite> I'm having docker layered image déjà-vus
<gchristensen> similar, the docker builder could be made much faster with recursive nix
<gchristensen> anyway, I can make an initrd in about 15 seconds now
* eyJhb *faster*
<gchristensen> unfortunately I can't upstream the changes
<eyJhb> Why not?
<gchristensen> recursive nix isn't stable
<sphalerite> gchristensen: how much bigger is it than a single squashfs?
<gchristensen> I haven't measured
monsieurp has quit [Remote host closed the connection]
<gchristensen> check out 84d161a940a250e00b1674d8b2dac4b19b7c4bea and run nix-build ./nixos/tests/boot.nix -A biosNetboot
<gchristensen> you'll see it build a -initrd, mine is 345M
<eyJhb> Stupid question, what is the normal size?
<gchristensen> I'm inviting sphalerite to find out :)
<eyJhb> Ah, sorry
<gchristensen> woohoo, it worked
<eyJhb> Grats!
<joepie91> https://twitter.com/joepie91/status/1265004817371598854 -- raised garden bed progress
<joepie91> joint works!
ashkitten has quit [Quit: WeeChat 2.8]
<eyJhb> Better sawing accuracy than me joepie91
<joepie91> I'm actually seriously considering using a hand saw to make it more accurate
<eyJhb> I always blame the saw, and no one is allowed to use it to test the theory. It is tho saw!
<joepie91> been using a jigsaw so far
<sphalerite> bah, I don't like autogroup
<joepie91> heh
<samueldr> those foot saw are so bad
<joepie91> foot saw? is that like a footgun with teeth
<samueldr> exactly
<sphalerite> gchristensen: 304MB
<samueldr> (I was just a tad slow at making a joke, that using a hand saw would be more accurate than a foot saw)
<sphalerite> very cool to be able to build it faster though. I've often wished the squashfs would build faster to be able to iterate faster
<joepie91> oh lol
ashkitten has joined #nixos-chat
<sphalerite> and I guess you could use it for iteration then make one big squashfs when it's all working right
<samueldr> same here, hopefully this can be broken out into a lib or flake thing
<sphalerite> gchristensen++
<{^_^}> gchristensen's karma got increased to 303
<gchristensen> eh, I'll take the size increase :)
<sphalerite> shhh, don't tell eelco
<sphalerite> :D
<gchristensen> hehe
<gchristensen> I mean, I can't upstream it anyway
<ashkitten> infinisil: hmmmm i realized that nixoses' key management doesn't actually work with containers - /var/keys isn't accessible to a container
<infinisil> Ah haven't thought about that
<gchristensen> this poor drive
<ashkitten> i realized that because apparently my mastodon secrets haven't been refreshing as they should, due to lack of access
<pie_> ashkitten: theres some way or another to symlink external stuff into containers
<pie_> or osmething like that
<pie_> idk if thats something you _want_ to do but you _Can_
<ashkitten> nixoses should automatically do that when a key is used in a container, i feel
<ashkitten> anyway it works for the moment -- it won't if i delete the stateful secrets_env file that hasn't been updated as it should, but it does for the moment
<cole-h> It's not nixoses anymore, it's Nixus >:(
<ashkitten> oh
<ashkitten> i wish github would've told me that when i pulled down changes today
<Valodim> https://www.tweag.io/posts/2020-05-25-flakes.html eelco can't let go of that uri syntax, can he
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<Valodim> aw. playing along the examples doesn't work for me :(
<Valodim> error: flake 'github:edolstra/hello/3ba1391a7858dd5bb83c3785a14f9feb26856b58' lacks attribute 'edition'
<hyperfekt> clearly the plural of nixos is nixoi
<Valodim> I guess the flake branch changed formats since the blog post was released... today?
<samueldr> Valodim: that's a bit too on-topic for the less topical channel ;)
<samueldr> (also meaning: on other nixos channels there may be more people that can and will look into that)
<samueldr> for the error, I mean
<emily> Valodim: edition attribute was removed, sounds like your nixFlakes is old
<emily> probably because "channel:nixos-20.03" I guess :/
<gchristensen> w00t I can iterate on a netboot image in ~30s per change
<samueldr> you know how there is that option to allow project members to edit one's PR on github?
<samueldr> where can you look to see if the PR allows edit or not?
<samueldr> I don't know if "![rejected]" is because it doesn't or another issue
<samueldr> through the murkiness of all of git
<gchristensen> "Add more commits by pushing to the mlv-app-init branch on Kiwi/nixpkgs." https://github.com/NixOS/nixpkgs/pull/88882
<{^_^}> #88882 (by Kiwi, 3 hours ago, open): mlv-app: init at 1.11
<cole-h> ^
<samueldr> thanks
<gchristensen> yep!
<cole-h> Beat me to it lol
<samueldr> so I guess I can't even into git
<samueldr> or you can't force-with-lease
<samueldr> git push --force-with-lease ssh://git@github.com/OWNER/mobile-nixos.git HEAD:branch-as-written-out
<samueldr> oh
<samueldr> I don't have a proper lease
<samueldr> since I didn't start from the branch
<samueldr> (if only the git interface told me that it's because of that!)
<ashkitten> infinisil: hmmmm looks like `chown $user:` doesn't work with a numeric user
<ashkitten> `chown $user` does
<emily> can you really just push to someone else's branch like that?
<emily> I knew maintainers could edit PRs but I assumed it would detach it from the other person's repo somehow... github's access control model is a joke
<Valodim> it's an opt-in feature when making a PR to allow upstream maintainers to push to that particular branch
<MichaelRaskin> Isn't it opt-out?
<cole-h> It's opt-out.
<Valodim> ah, so it is. guess they changed that
<Valodim> eh, still seems like a reasonable feature to me
<samueldr> it's not obvious what the checkbox actually allows
<samueldr> and that's my main gripe with that
<MichaelRaskin> It's not always what tree a commit on GitHub belongs to, either… par for the course
<MichaelRaskin> Sorry, repo
<samueldr> may 2017 was 15 months ago? whew, time flies
<samueldr> (yes, I know the commit date doesn't matche the file change date and doesn't have to)
<MichaelRaskin> Did you intentionally forward-date files just to drive the point home?
<samueldr> no
<samueldr> it's an artifact of how I made a 1-commit history
<samueldr> I have this habit of removing the master branch from my repo forks, and adding a 000-readme branch with "GO UPSTREAM YOU DUMDUM" or similar
<MichaelRaskin> Ah
<samueldr> and I just --amended it
<samueldr> (looks like that one isn't named 000-readme... how peculiar)
<emily> Valodim: it means that if you PR from your personal branch to someone else's project, they can push malicious commits to it, and then you git clone git@github.com:myusername/myrepo.git and get their exploit
<emily> obviously the solution is "don't trust branches you opened as PRs", but I think it's far from obvious that cloning your own repository can sometimes give you commits from an upstream maintainer
<emily> especially when github already maintains the pull/X/head refs it could use on the upstream repository
<emily> just another entry in a long list of github features that seem to be designed to point out the value of git commit signing
<samueldr> "but the git commit is signed"
<samueldr> (by the new author!)
<emily> yeah, you need your own custom per-repo validation machinery which sucks...
<samueldr> authored-by and committed-by
<samueldr> yeah
<emily> shouldn't be too hard to build something simple like "all commits to my config repo have to be signed by one of my keys" at least
monsieurp has joined #nixos-chat
<Valodim> not hard, except for the key management part
<Valodim> which is, uh, one of the harder problems out there these days
<MichaelRaskin> The problem is much simpler if most predicates contain the word «my»
monsieurp has quit [Remote host closed the connection]
<samueldr> wouldn't "breaking" all git interactions if the current commit isn't signed by "my" key be enough? up to requiring an empty signed commit to mark the current chain valid?
<bqv> emily: ordered, and sky have already registered my cancellation
<bqv> This is beautiful
<samueldr> but, yeah, that wouldn't stop anything else from using that data
<samueldr> unless you can't checkout
<bqv> So much nicer than ditching virgin
<samueldr> (with 'sky' and 'virgin', I thought it was flight plans or something along the line)
* joepie91 uploaded an image: IMG_1541.JPG (2773KB) < https://pixie.town/_matrix/media/r0/download/pixie.town/NBSDVUjAbGMldCJMLKSlovMG >
<joepie91> rev2 is looking better, cc eyJhb
<emily> bqv: yay :D
<emily> bqv: looks like I got a referral email too, ha
<emily> samueldr: ISPs
<samueldr> yep, looked earlier at the discussion
<cole-h> joepie91: Looking a little dark in there. Don't strain your eyes ;)
<samueldr> but it was funny to me how, virgin has flights, and "sky" could somehow be a good/bad company for flights... something
<emily> there is no section of economic activity left untouched by rupert murdoch and richard branson
<joepie91> cole-h: Camera model: Potato 2000
<cole-h> Hehe
<bqv> Heh
<samueldr> without context, knowing that you do business with Virgin is... not obvious how
<joepie91> cole-h: also ~all of my powertools have built-in work lights, so :P
<joepie91> all the ones where it matters anyway
<cole-h> Makes sense
<__monty__> joepie91: That's a nice, uhm, giant ladle?
<joepie91> __monty__: what :P
<__monty__> Not sure what I'm looking at.
<cole-h> Wood, duh
<cole-h> And some nails
<cole-h> Or screws
<__monty__> A small corner of planks.
<cole-h> Some metallic object
<cole-h> Inserted into some wooden object
<__monty__> With what looks like way too many screws.
<joepie91> __monty__: "small corner of planks" is exactly correct :P
<joepie91> __monty__: these are my test joints for my raised garden bed project
<joepie91> lol samueldr
<cole-h> samueldr: Darn you, that link somewhat breaks my weechat URL highlighter >:(
<joepie91> __monty__: anyway the real thing will be a sort-of clone of https://shop.makkelijkemoestuin.nl/bakken/mm-original-120x120-moestuintafel
<joepie91> but deeper
<__monty__> Is there a way to make youtube *alway* open to a channel's "videos" page? I literally *never* want to see the "home" page with the auto-play video.
<MichaelRaskin> And lose that click of Engagement™?? Never
<__monty__> :'(
<samueldr> __monty__: better bookmarks
<samueldr> as in, not an extension, but only using a direct link
<samueldr> that's how I do it
<samueldr> the home page is terrible
<samueldr> and I'm 99% sure that's why you hear "your video didn't get into my sub box"
<samueldr> people thinking the youtube home is the sub box
<__monty__> samueldr: I don't mean the youtube homepage, rarely go there.
<samueldr> oh!
<__monty__> If you go to a channel's page there's a channel "home" page.
<samueldr> a youtube profile
<samueldr> hm
<samueldr> good question, probably not
andi- has quit [Quit: WeeChat 2.8]
andi- has joined #nixos-chat
<__monty__> MichaelRaskin: That's great, but doesn't handle browser history I suppose?
__monty__ has quit [Quit: leaving]
<MichaelRaskin> History, meet SQL update, I guess
<MichaelRaskin> Hmmmm
KeiraT has quit [Ping timeout: 240 seconds]
KeiraT has joined #nixos-chat