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: 246 seconds]
drakonis_ has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis_ has quit [Ping timeout: 265 seconds]
<samueldr> oops, turns out I forgot to -enable-kvm in my qemu setup for my tests
<samueldr> it wasn't *that* slow, but I was starting to doubt
<gchristensen> nice go-fast option
<samueldr> is there gcc --go-fast?
<gchristensen> -enable-kvm apparently
drakonis1 has quit [Ping timeout: 258 seconds]
drakonis1 has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis1 has quit [Ping timeout: 240 seconds]
jasonrm_ has quit [Quit: ZNC 1.7.3 - https://znc.in]
waleee-cl has quit [Quit: Connection closed for inactivity]
drakonis has quit [Read error: Connection reset by peer]
cdepillabout has joined #nixos-chat
endformationage has quit [Quit: WeeChat 2.5]
cdepillabout has quit [Ping timeout: 245 seconds]
<ashkitten> i love how you can make a git hook that's like, "before you commit, don't."
<ashkitten> evil prank: `echo '#! /usr/bin/env false' > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit`
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-chat
<ar> http://lists.llvm.org/pipermail/llvm-dev/2019-September/135304.html >Support for asm goto, enabling for example the mainline Linux kernel for x86_64 to build with Clang
<eyJhb> Another update, another VBox rebuild
veske has joined #nixos-chat
veske has quit [Quit: This computer has gone to sleep]
vdemeester_ has joined #nixos-chat
vdemeester_ has quit [Client Quit]
jD91mZM2 has quit [Quit: ZNC 1.7.3 - https://znc.in]
jD91mZM2 has joined #nixos-chat
__monty__ has joined #nixos-chat
jD91mZM2 has quit [Quit: ZNC 1.7.3 - https://znc.in]
LnL has quit [Quit: exit 1]
LnL has joined #nixos-chat
jtojnar has quit [Quit: jtojnar]
<emily> NIX PUZZLE: how do you write the literal string '${foo}' inside a '' ... ''-quoted string? ANSWER: '' ... ''\'''${foo}' ... ''
<emily> if anyone has a less horrifying answer to this puzzle...
<__monty__> ,''$
<__monty__> ,$
<__monty__> : s
<joepie91> emily: "bar '\${foo}' baz" ?
<joepie91> eh
<__monty__> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<emily> it's inside an existing multi-line '' ... '' script
<joepie91> emily: "bar '\${foo}' baz" ?
<joepie91> backslash got lost in transit :P
<emily> it didn't, but again, it's inside an existing multi-line '' ... '' script.
<joepie91> hm
<joepie91> you can't escape $ with ?
<__monty__> I think `'' ... '''${foo} ... ''` should do?
<emily> __monty__: error: undefined variable 'foo' at (string):1:13
<emily> the syntax is ambiguous.
<emily> nix puzzle additional recommendations: try solutions in nix repl before suggesting them :p
* joepie91 was too busy yelling on Twitter :P
<__monty__> (╯°□°)╯︵ ┻━┻
<__monty__> > '' ... '\''${foo}' ... ''
<{^_^}> "... '\\${foo}' ... "
<__monty__> Score!
<__monty__> -_-
<__monty__> No, dammit!
<emily> not quite the same :)
<emily> the correct output in nix repl is "... '${foo}' ... "
<emily> which, uh, is incorrect syntax I guess
<emily> but that's how it displays it
<__monty__> > '' ... '$\{foo}' ... ''
<{^_^}> "... '$\\{foo}' ... "
<__monty__> Wth is with this \ getting escaped?
<__monty__> > '' ... ''\'''${foo}' ... ''
<{^_^}> "... '${foo}' ... "
<__monty__> > '' ... \ ... ''
<{^_^}> "... \\ ... "
jD91mZM2 has joined #nixos-chat
<__monty__> Yeah, see, I think I'm actually right and the proposed solution is just wrong : >
<emily> huh?
<emily> there should be no \ in the output at all.
<emily> here's a simpler test harness:
<emily> nix-repl> '' ... ''\'''${foo}' ... '' == "... '\${foo}' ... "
<emily> true
<emily> nix-repl> '' ... '\''${foo}' ... '' == "... '\${foo}' ... "
<emily> false
<__monty__> > " ... '\${foo}' ... "
<{^_^}> " ... '${foo}' ... "
<__monty__> -_-, you've made a powerful enemy today, {^_^}
kcalvinalvinn has joined #nixos-chat
<infinisil> ,escape-special
<{^_^}> A $${foo} will insert the literal string "$${foo}". Use \$${foo} in " strings or ''$${foo} in '' strings to have foo interpolated
<infinisil> > '' ${"'\${foo}'"} ''
<{^_^}> "'${foo}' "
<infinisil> emily: Well there's this, but that's even worse :P
<emily> not sure which of ${"'\${foo}'"} and ''\'''${foo}' is uglier, yeah :p
<emily> who decided to make the escape character the quote-close delimiter??
<__monty__> Someone who probably felt pretty darn smart.
<etu> And regret it.
<__monty__> I think the motivation was how do we come up with something you can simply paste most any bash script in?
<__monty__> But then they went, let's steal bash's syntax for curly-bois and ruin the pretty picture.
<infinisil> Very interesting ideas in that talk: https://lobste.rs/s/fwt85q/reinventing_home_directories_systemd
<infinisil> Making home directories self-contained, extensible user records, encrypting home on suspend
<etu> This sounds a bit like some of the things that I see people doing with home directories on tmpfs
<infinisil> Not quite
emily has quit [Remote host closed the connection]
* etu haven't watched the talk yet
jD91mZM2 has quit [Quit: ZNC 1.7.3 - https://znc.in]
jD91mZM2 has joined #nixos-chat
<infinisil> The video is much longer than the talk btw, it starts at 9:57 (cut off at the start), goes until 39:22, and I recommend 1.5x speed
emily has joined #nixos-chat
<gchristensen> 1.5x speed is basically made for tech talks
<__monty__> Yes, start at 1.5x and try to work up to 2x.
<__monty__> Or just scroll through the presentation. Got the gist and didn't take me 10 min.
mog has joined #nixos-chat
drakonis_ has quit [Ping timeout: 245 seconds]
drakonis_ has joined #nixos-chat
drakonis_ has quit [Ping timeout: 265 seconds]
drakonis_ has joined #nixos-chat
<fpletz> the postgres talk from that same conference should be watched at 0.75x though ;)
psyanticy has joined #nixos-chat
endformationage has joined #nixos-chat
waleee-cl has joined #nixos-chat
__monty__ has quit [Ping timeout: 258 seconds]
<eyJhb> Is there any documentation for `/proc/sys/net` e.g. ip_forward some place, and the other options?
pie_ has quit [Ping timeout: 265 seconds]
drakonis_ has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos-chat
<gchristensen> today's office hours (in ~2h50min - 1900UTC / 3pm america/new_york) is going to be a question & answer format, plus PR review. if you're interested, come to #nixos-officehours. I'd love to get a few questions and PRs lined up ahead of time!
peel has joined #nixos-chat
tokudan has quit [Quit: Dunno.]
tokudan has joined #nixos-chat
<eyJhb> Better late than never ajs124 ! Thanks :) Will look at it :)
drakonis has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 245 seconds]
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos-chat
Jackneill has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
<qyliss> ... 1/3 of featured speakers are facebook
<drakonis_> it will make someone mad
<drakonis_> something something poettering
<samueldr> drakonis_: what do you mean by that?
<drakonis_> mentioning its a poettering talk normally brings the average linux neckbeard into a frothing rage
<samueldr> looks like you're actively baiting, which is not a good thing to do :/
<drakonis_> i linked it here because it is useful to nixos
<drakonis_> no baiting here
<samueldr> so saying "something something poettering", then "mentioning it[...] normally brings [euphemisms I don't care to repeat] into a frothing rage" is not baiting? sorry then
<drakonis_> okay, maybe that was, unintentionally baiting
<drakonis_> my bad
<drakonis_> i'll refrain from it
buckley310 has quit [Quit: Ping timeout (120 seconds)]
buckley310 has joined #nixos-chat
ivan has quit [Remote host closed the connection]
ldlework has quit [Quit: co'o ro do]
ivan has joined #nixos-chat
kini has quit [Remote host closed the connection]
MichaelRaskin has joined #nixos-chat
ldlework has joined #nixos-chat
kini has joined #nixos-chat
<eyJhb> infinisil: Firstly I have to get the client connected, after that it is the iptables that will screw me over. Need my router/gateway to redirect a single IP to use tun0 :/ And also to setup some iptables to accept specific ports and route to that host
<eyJhb> My iptables skillz are basically.. Non-existing
<infinisil> Hm mine are about the same
<infinisil> Do you have the client connected though?
<eyJhb> Nope! Working on it, but I just started. Haven't even uploaded the keys etc.
<eyJhb> So I will pep when something works, and I am stuck :D
<eyJhb> Hoping I can get by using some of the same rules I have setup on my server, which redirects the traffic to the tunnel to beging with
<infinisil> eyJhb: I mostly used this as a start for my config: https://nixos.wiki/wiki/OpenVPN#Simple_one-client_VPN_gateway_server
<eyJhb> Hmm... I would have guessed to use `services.openvpn.servers.<name>.config` for clients as well?
<infinisil> Yup
pie_ has joined #nixos-chat
tokudan has quit [Quit: Dunno.]
qyliss has quit [Quit: bye]
tokudan has joined #nixos-chat
qyliss has joined #nixos-chat
savanni has joined #nixos-chat
psyanticy has quit [Quit: Connection closed for inactivity]
<eyJhb> infinisil: so something is running now, so I just need to route it somehow :p
jasonrm has joined #nixos-chat
__monty__ has joined #nixos-chat
__monty__ has quit [Quit: leaving]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-chat
jtojnar_ has joined #nixos-chat
jtojnar has quit [Ping timeout: 245 seconds]
jtojnar_ is now known as jtojnar
endformationage has quit [Quit: WeeChat 2.5]
tokudan has quit [Quit: Dunno.]
tokudan has joined #nixos-chat
tokudan has quit [Quit: Dunno.]
tokudan has joined #nixos-chat
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 268 seconds]
endformationage has joined #nixos-chat