gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<samueldr> infinisil: (continuing at the right place)
<samueldr> mkdir could be used to subscribe to resources
<infinisil> (yes)
<infinisil> Hmm..
<samueldr> so when you ls that resource's parent dir they are listed
<infinisil> Feels unnatural though
<samueldr> it'll always be a bit unnatural when strictly mapping to a FS
<samueldr> you could have a "control" file where you'd send commands though
<infinisil> Oh yeah
<infinisil> samueldr: Subscribing should probably be `ln -s by-channel/<channelId> subscriptions`
<samueldr> hm, more natural indeed
<samueldr> it doesn't even need to be on the virtual fs
<infinisil> Oh yeah
<infinisil> Uploading with `mv /path/to/video.mp4 uploads`!
<infinisil> But really, I'd be happy with just being able to play videos with `mpv youtube/by-id/<id>` :)
<infinisil> I feel like I could implement this in a weekend
<infinisil> Some context: I recently wanted to use youtube videos with syncplay, but that didn't work
<infinisil> In theory it should, if youtube-dl is installed, no idea why it doesn't
<energizer> mpv 'https://www.youtube.com/watch?v=jXd-hkP4xnU'; # already works
<infinisil> So I'm thinking, if youtube videos could be exposed directly at like youtube.infinisil.com/<id>, then these urls could be used in syncplay instead
<infinisil> energizer: Yeah, I tested that too, and it works. But not in syncplay
<infinisil> "Failed to recognize file format" to give an error
<infinisil> Maybe I should debug it a bit more
<sphalerite> infinisil: in case you're interested, I hacked together an in-browser syncplay-oid recently
<infinisil> :o
<infinisil> I am interested indeed!]
<sphalerite> emphasis on "hacked"
<infinisil> Damn, literal haskell
<sphalerite> yeah but that's just copypasta o:)
<infinisil> Nice
<sphalerite> with some little adjustments and no corresponding documentation updates
<infinisil> Hehe, as all hacks should be
<sphalerite> this was literally something I put together in an hour to use it the same evening
<infinisil> :o
<sphalerite> (which is very unlike me, I usually think "oh but I should do this and that properly" and end up bikeshedding the whole thing before anything is working
<sphalerite> )
<sphalerite> I guess the time pressure helped
<infinisil> Hehe yeah I'm usually also a perfectionist
<sphalerite> well you still get more projects into a working state than me :p
<infinisil> Not sure about that! I have so many things I'd like to work on
<infinisil> Recently I've thought a lot again about how to organize/rate/tag music
<infinisil> And I feel like I have the idea of the century
<infinisil> But I don't really have much time to implement it :(
<sphalerite> you got nixbot out of the hangar
<infinisil> Hehe I guess
<sphalerite> and nixus is in a working state
<abathur> should be like a yearly competition to do the weirdest thing you can possibly do with normal syscalls without breaking <test suite>
<abathur> (new test suite choice each year, to keep it interesting?)
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos-chat
rajivr has joined #nixos-chat
slack1256 has joined #nixos-chat
<energizer> something's wonky with the audio of this talk. which settings should i change to make it more comfortable to listen to? https://www.youtube.com/watch?v=Rk76BurH384
<energizer> (i dont have the framework to even describe audio problems)
<infinisil> energizer: Hmm maybe you need a high-pass filter
* infinisil tries out different things in pulseeffects
<infinisil> Actually just noise reduction works great
<energizer> that's much better yeah
<energizer> thanks
patagonicus5 has joined #nixos-chat
patagonicus has quit [Ping timeout: 265 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #nixos-chat
<energizer> how much slowness does LUKS add?
slack1256 has quit [Ping timeout: 246 seconds]
<supersandro2000> so it is not very much. For normal usage you don't need to think about it.
<supersandro2000> if you are doing heavy IO and need every MB you probably do not want to use it
<supersandro2000> it is so fast because modern CPUs have hardware support for the encryption
cole-h has joined #nixos-chat
<supersandro2000> read the last paragraph
<supersandro2000> also I think for daily usage that does not matter to much
<cole-h> Anybody have any reading material for protecting a server (esp. in the context of NixOS)? I should probably make sure my mailserver is decently protected.
<cole-h> Is fail2ban still something that should be enabled?
<jtojnar> “You are probably unaware that encryption is a heavy-weight operation and that even with hardware support in the CPU, you will be limited by what your CPU crypto-accelerator can do.”
<supersandro2000> the default ssh-server settings for nixos are actually not that bad
<supersandro2000> fail2ban is mostly to avoid spam attacks that slow down your system or try to brute force something
<supersandro2000> but can't recommend anything to read from the top of my head right npow
<energizer> cole-h: i think people disagree on that. some people argue that adding extra internet-facing code is just adding risk without matching benefit
<supersandro2000> whut. fail2ban is not strictly required but if you get a lot of spam or brute force attacks it can be really useful
<energizer> what's the use?
<supersandro2000> blocking ips which exceed rate limits in the form of authentication failures
<supersandro2000> if we go by this rule we can also remove encryption from your disk because it is slightly slower
<bbigras> is using the hardening nixos profile a good idea?
<supersandro2000> bbigras: depends. the file writes that you could get stability problems https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/hardened.nix#L1
<supersandro2000> personally I wouldn't use it
<energizer> Perfect. https://www.fail2ban.org/wiki/index.php/Main_Page "Since spammers were way too much active on this wiki, user account creation has been disabled."
<bbigras> supersandro2000: thanks
<supersandro2000> thats very ironically
<supersandro2000> maybe a mail server is not a perfect example for fail2ban I can think of
<supersandro2000> but it could block ips which scrape your web server or try to exploit something
<supersandro2000> at least for ssh I found something way more effective than fail2ban: you only enable newer cryptos (eg ed25519) and most bots can't connect to you because they only know ecdsa and rsa
<bbigras> you can also only allow ssh when using a vpn
<bbigras> maybe only for servers that you can connect without ssh in case of problems. like on digital ocean
<energizer> depending on how big your internal network is, there might be 0 or many compromised machines on it
<supersandro2000> idk why I would want to wrap ssh over a VPN
<supersandro2000> both use a pre shared secret and ssh has password login disabled
<supersandro2000> and a vpn wont save you anything if you have a bad machine in most cases
<energizer> it's nice to not have my computers routable on the public internet, "defense in depth" and all that
<supersandro2000> if I have some remote network somewhere it makes sense to connect to it via VPN
<supersandro2000> but if I have a single server with ssh in some data center I can just connect to it via ssh
endformationage has quit [Quit: WeeChat 2.9]
<cole-h> lovesegfault: ping
<lovesegfault> cole-h: pong
<cole-h> lovesegfault: You use deploy-rs -- if I use `--build-host` with nixos-rebuild, should I just set up that host as a builder for the machine I'm deploying to?
<lovesegfault> I haven't used nixos-rebuild in >1y now
<lovesegfault> I don't really know
<cole-h> basically just makes it build locally before pushing the paths to the remote host
<lovesegfault> doesn't deploy-rs do this?
<bbigras> `nix build .#host` ?
<cole-h> lovesegfault: I don't use deploy-rs yet, which is why I was asking :P
<lovesegfault> cole-h: time to start using it :P
<cole-h> I guess ;P
<lovesegfault> are you on nixus or nixops?
<cole-h> Neither
<cole-h> :D
<cole-h> nixos-rebuild
<bbigras> another nix deploy tool was announced today in the forum
<lovesegfault> bbigras: which one?
<bbigras> parallel deploy sounds nice
<lovesegfault> Yeah, I wanted to do that for deploy-rs
<cole-h> It's been around IIRC
<cole-h> I remember seeing it on r/nixos I think
<lovesegfault> Ah, I know justinas
<lovesegfault> he's a great engineer
<bbigras> I kinda lost track of every deploy tools to be honest. we should put all of them in a locked room and force them to breed to something.
<energizer> does nixus do concurrent deploy?
<lovesegfault> nope
<lovesegfault> neither does deploy-rs
<aleph-> Does nixops already do concurrent deploys?
<aleph-> Doesn't*
<aleph-> Huh I do like a decent amount of what I read on colmena. Saved
<supersandro2000> > Entirely stateless
<supersandro2000> I am sold
<{^_^}> undefined variable 'Entirely' at (string):472:1
<supersandro2000> with nixops I am usually like: yeah something something with state is broken, just delete it
waleee-cl has quit [Quit: Connection closed for inactivity]
<energizer> nixops 2 is stateless by default iirc, morph is too
<energizer> morph doesnt parallel tho
<infinisil> Hmm parallel eval..
<supersandro2000> let me check my nixops version...
<supersandro2000> NixOps @version@
<supersandro2000> 1.7 still
Hurttila has joined #nixos-chat
<energizer> feels like multiple evals of similar systems should be able to share memory
<supersandro2000> I am not sure if that would save anything
<supersandro2000> if you would build the things first and re-use those builds across the hosts you could save build time
<energizer> that discourse page says "If I remember correctly, for large NixOps networks of e.g. 100 nodes, you have to do 100 machine evaluations, which takes a long time."
cole-h has quit [Ping timeout: 272 seconds]
<supersandro2000> yeah read that
<supersandro2000> but you can't easily do that in nix
<supersandro2000> because you would still need to revalidate large parts
<adisbladis> energizer: I think that you could make an eval cache by considering the derivations as nodes in a persistent data structure
lejonet has quit [Ping timeout: 240 seconds]
lejonet has joined #nixos-chat
<infinisil> The satisfaction of packaging something complicated with Nix, making it completely selfcontained is just so good
<infinisil> Just did that for #112972
<{^_^}> https://github.com/NixOS/nixpkgs/pull/112972 (by Infinisil, 22 minutes ago, open): botamusique: init at unstable-2021-01-02
<infinisil> (mumble bot for playing music)
<aleph-> infinisil: Nice! I'm gonna put that to good use.
<supersandro2000> the python music bots are usually a bit limited in features though
<supersandro2000> last time I searched one for another platform all of them had no volume control
<infinisil> This one does :D
<energizer> i always wondered why apps have their own volume control
<infinisil> energizer: In this case it makes sense, because you want the music to stay in the background when talking with people
<infinisil> (this mumble bot is just another user in the channel)
<energizer> system has app-level controls
<energizer> eg pavucontrol
<infinisil> Yeah but this is all the same app
<energizer> oh that's interesting
<infinisil> It's all just mumble, no separate apps for every user that speaks in it
<energizer> heh
<energizer> sometimes i wish it were like that
<energizer> control my volume with configuration.nix
<energizer> but currently a rebuild takes like 30 seconds for me, needs to be more like 10-100ms for that
<infinisil> Ohh hell no
<infinisil> I change my volume every couple minutes!
<energizer> yeah exactly, it needs to be fast
<infinisil> (well, maybe not that much, but it's a lot!)
<energizer> nixos-manager could totally have a gui slider
<energizer> nixos-manager could totally have a *volume slider
<infinisil> energizer: If nixos-rebuild were *instant*, then that would be nice. Where instant is really just unnoticeable, so like <50ms
<energizer> yeah that's what i said :D
<infinisil> Ohh right
<adisbladis> infinisil: Press the volume button, a macro updating your configuration.nix triggers and rebuilds :P
<energizer> ya!
<energizer> hell, why not switch windows in configuration.nix
<infinisil> Wouldn't want it any other way
<adisbladis> energizer: Yeah, serialise the entire X state into configuration.nix
<adisbladis> I wonder if you can dump emacs and include all open buffer state
<energizer> someone on flakes said rebuild is <1s for them
<adisbladis> energizer: Adding even a single uncached package will inflate that by a lot
<energizer> oh good point, you need to be able to change volume during a package build
<energizer> i dont even know what nixos does in that situation - can you rebuild while rebuilding?
<adisbladis> Yeah, sure
<adisbladis> Yo dawg
<aleph-> Lol
<infinisil> Alright, what to do. It's 9am, I haven't slept, and I'm super hungry. What's more important, sleep or food?
<energizer> i cant sleep hungry
<infinisil> Hmm yeah, same I think
<infinisil> Eating it is!
abathur has quit [Quit: abathur]
<adisbladis> energizer: Last year I tried fasting for a week+
<adisbladis> That was many nights awake
<energizer> ouch!
<energizer> also, wow
<adisbladis> The first 3 days are the hardest
<adisbladis> After that you pretty much lose your hunger entirely
<infinisil> Impressive
<energizer> did you change your water intake?
<adisbladis> Yeah, I started drinking more
<adisbladis> Also supplemented electrolytes
<energizer> mhmm
julm has quit [Ping timeout: 246 seconds]
awaxa has quit [*.net *.split]
LinuxHackerman has quit [*.net *.split]
danielrf[m] has quit [*.net *.split]
Guest88372_ has quit [*.net *.split]
das_j has quit [*.net *.split]
Dotz0cat has quit [*.net *.split]
Ashy has quit [*.net *.split]
tokudan has quit [*.net *.split]
dadada_ has quit [*.net *.split]
genevino has quit [*.net *.split]
energizer has quit [*.net *.split]
Taneb has quit [*.net *.split]
nckx has quit [*.net *.split]
Hurttila has quit [*.net *.split]
evanjs has quit [*.net *.split]
lassulus has quit [*.net *.split]
blueberrypie has quit [*.net *.split]
ekleog has quit [*.net *.split]
DavHau[m] has quit [*.net *.split]
aanderse has quit [*.net *.split]
mirage[m] has quit [*.net *.split]
jtojnar has quit [*.net *.split]
worldofpeace has quit [*.net *.split]
puzzlewolf has quit [*.net *.split]
joepie91 has quit [*.net *.split]
taktoa[c] has quit [*.net *.split]
talyz has quit [*.net *.split]
supersandro2000 has quit [*.net *.split]
ky0ko has quit [*.net *.split]
davidtwco has quit [*.net *.split]
steveeJ has quit [*.net *.split]
emilazy has quit [*.net *.split]
ravndal has quit [*.net *.split]
numkem has quit [*.net *.split]
mudri has quit [*.net *.split]
elvishjerricco has quit [*.net *.split]
claudiii has quit [*.net *.split]
johanot has quit [*.net *.split]
Gaelan has quit [*.net *.split]
NinjaTrappeur has quit [*.net *.split]
philipp[m]1 has quit [*.net *.split]
rycee has quit [*.net *.split]
ili has quit [*.net *.split]
ddima has quit [*.net *.split]
tokudan has joined #nixos-chat
Ashy has joined #nixos-chat
Dotz0cat has joined #nixos-chat
das_j has joined #nixos-chat
dadada_ has joined #nixos-chat
Taneb has joined #nixos-chat
Guest88372_ has joined #nixos-chat
energizer has joined #nixos-chat
LinuxHackerman has joined #nixos-chat
genevino has joined #nixos-chat
danielrf[m] has joined #nixos-chat
mudri has joined #nixos-chat
numkem has joined #nixos-chat
ravndal has joined #nixos-chat
elvishjerricco has joined #nixos-chat
emilazy has joined #nixos-chat
steveeJ has joined #nixos-chat
davidtwco has joined #nixos-chat
ky0ko has joined #nixos-chat
supersandro2000 has joined #nixos-chat
Gaelan has joined #nixos-chat
johanot has joined #nixos-chat
claudiii has joined #nixos-chat
Ke has quit [Ping timeout: 240 seconds]
evanjs has joined #nixos-chat
ekleog has joined #nixos-chat
blueberrypie has joined #nixos-chat
lassulus has joined #nixos-chat
danielrf[m] has quit [Ping timeout: 258 seconds]
chvp has quit [Ping timeout: 244 seconds]
rmcgibbo[m] has quit [Ping timeout: 244 seconds]
immae has quit [Ping timeout: 244 seconds]
artturin has quit [Ping timeout: 244 seconds]
leonardp has quit [Ping timeout: 244 seconds]
chr0ma[m]1 has quit [Ping timeout: 244 seconds]
kraem[m] has quit [Ping timeout: 244 seconds]
pinage404[m]1 has quit [Ping timeout: 244 seconds]
Irenes[m] has quit [Ping timeout: 244 seconds]
aaronjanse has quit [Ping timeout: 268 seconds]
rosariopulella[m has quit [Ping timeout: 260 seconds]
LinuxHackerman has quit [Ping timeout: 258 seconds]
siraben has quit [Ping timeout: 265 seconds]
veleiro has quit [Ping timeout: 240 seconds]
elvishjerricco has quit [Ping timeout: 266 seconds]
emily has quit [Ping timeout: 268 seconds]
bbigras has quit [Ping timeout: 240 seconds]
crazazy[m] has quit [Ping timeout: 244 seconds]
Ox4A6F has quit [Ping timeout: 268 seconds]
ma27[m] has quit [Ping timeout: 268 seconds]
noneucat has quit [Ping timeout: 268 seconds]
Hurttila has joined #nixos-chat
kalbasit[m] has quit [Ping timeout: 240 seconds]
leons has quit [Ping timeout: 240 seconds]
mjlbach has quit [Ping timeout: 240 seconds]
thefloweringash has quit [Ping timeout: 240 seconds]
manveru[m] has quit [Ping timeout: 240 seconds]
mudri has quit [Ping timeout: 264 seconds]
nicolas[m] has quit [Ping timeout: 265 seconds]
cwslimy[m] has quit [Ping timeout: 265 seconds]
elvishjerricco has joined #nixos-chat
colemickens has quit [Max SendQ exceeded]
ddima has joined #nixos-chat
NinjaTrappeur has joined #nixos-chat
nckx has joined #nixos-chat
mudri has joined #nixos-chat
nckx has quit [Max SendQ exceeded]
mudri has quit [Changing host]
mudri has joined #nixos-chat
nckx has joined #nixos-chat
talyz has joined #nixos-chat
taktoa[c] has joined #nixos-chat
joepie91 has joined #nixos-chat
lunc has quit [Ping timeout: 272 seconds]
aaronjanse has joined #nixos-chat
rycee has joined #nixos-chat
mirage[m] has joined #nixos-chat
DavHau[m] has joined #nixos-chat
puzzlewolf has joined #nixos-chat
aanderse has joined #nixos-chat
leonardp has joined #nixos-chat
rmcgibbo[m] has joined #nixos-chat
artturin has joined #nixos-chat
Ke has joined #nixos-chat
veleiro has joined #nixos-chat
worldofpeace has joined #nixos-chat
jtojnar has joined #nixos-chat
chr0ma[m]1 has joined #nixos-chat
crazazy[m] has joined #nixos-chat
ma27[m] has joined #nixos-chat
kraem has quit [Read error: Connection reset by peer]
kraem has joined #nixos-chat
aanderse has quit [Ping timeout: 240 seconds]
rycee has quit [Ping timeout: 246 seconds]
puzzlewolf has quit [Ping timeout: 258 seconds]
ma27[m] has quit [Ping timeout: 268 seconds]
worldofpeace has quit [Ping timeout: 268 seconds]
DavHau[m] has quit [Ping timeout: 265 seconds]
jtojnar has quit [Ping timeout: 244 seconds]
rmcgibbo[m] has quit [Ping timeout: 258 seconds]
artturin has quit [Ping timeout: 258 seconds]
aaronjanse has quit [Ping timeout: 244 seconds]
Ke has quit [Ping timeout: 240 seconds]
veleiro has quit [Ping timeout: 268 seconds]
leonardp has quit [Ping timeout: 268 seconds]
crazazy[m] has quit [Ping timeout: 244 seconds]
mirage[m] has quit [Ping timeout: 240 seconds]
chr0ma[m]1 has quit [Ping timeout: 265 seconds]
ili has joined #nixos-chat
philipp[m]1 has joined #nixos-chat
danielrf[m] has joined #nixos-chat
LinuxHackerman has joined #nixos-chat
leons has joined #nixos-chat
kalbasit[m] has joined #nixos-chat
kraem[m] has joined #nixos-chat
chvp has joined #nixos-chat
immae has joined #nixos-chat
colemickens has joined #nixos-chat
cwslimy[m] has joined #nixos-chat
siraben has joined #nixos-chat
bbigras has joined #nixos-chat
nicolas[m] has joined #nixos-chat
mjlbach has joined #nixos-chat
manveru[m] has joined #nixos-chat
thefloweringash has joined #nixos-chat
Irenes[m] has joined #nixos-chat
pinage404[m]1 has joined #nixos-chat
noneucat has joined #nixos-chat
Ox4A6F has joined #nixos-chat
emily has joined #nixos-chat
rosariopulella[m has joined #nixos-chat
Ke has joined #nixos-chat
chr0ma[m]1 has joined #nixos-chat
aanderse has joined #nixos-chat
ma27[m] has joined #nixos-chat
rycee has joined #nixos-chat
jtojnar has joined #nixos-chat
mirage[m] has joined #nixos-chat
DavHau[m] has joined #nixos-chat
crazazy[m] has joined #nixos-chat
aaronjanse has joined #nixos-chat
rmcgibbo[m] has joined #nixos-chat
artturin has joined #nixos-chat
puzzlewolf has joined #nixos-chat
leonardp has joined #nixos-chat
worldofpeace has joined #nixos-chat
veleiro has joined #nixos-chat
<sphalerite> ugh why must rust the game exist and make searching for rust-lang stuff more difficult
<eyJhb> sphalerite: The same way I have it with Go the game...
<eyJhb> Also.
<sphalerite> oooh yeah
<eyJhb> Try searching for BATMAN...............................................
<sphalerite> hahaha
<eyJhb> That is ANNOYING to research how BATMAN works...
<eyJhb> Yes, I totally want to know how he works against the Joker, no I surely do not have a project to da :(
<sphalerite> but that's golang's fault for choosing the name of an ancient board game
<sphalerite> rust the game is newer than rust the nalguage
<philipp[m]1> There is a small HiFi shop in my neighborhood called "Batman Elektronik".
<eyJhb> philipp[m]1: Hit them from me thanks.
<eyJhb> sphalerite: True... :p But! Have you TRIED Rust the game?
<sphalerite> no
<philipp[m]1> But they just named it after their ancentral home town. https://en.wikipedia.org/wiki/Batman,_Turkey
eyJhb has left #nixos-chat ["NOPE"]
eyJhb has joined #nixos-chat
<eyJhb> I might forget I left, heya again.
<eyJhb> But I think it is a general thing at this point... Actually hoped that Rust the game would be using Rust :p
<philipp[m]1> Isn't that rust game older than the language?
<sphalerite> ,spongebob no, games have to use C++ because performance
<ehmry> this lean language seems quite badly named, worst than "go"
<sphalerite> philipp[m]1: nope. language is 2010, game is 2013
<philipp[m]1> Huh, rustlang is older than I remember.
<leons> Well, it wasn't really comparable to what it is today
<leons> AFAIK it still had garbage collection until 2013 or so
<sphalerite> how not?
<sphalerite> what? no
<sphalerite> That was the whole point, memory safety without runtime costs
patagonicus5 is now known as patagonicus
patagonicus has quit [Quit: The Lounge - https://thelounge.chat]
patagonicus has joined #nixos-chat
<philipp[m]1> I should try it again.
<leons> I might be mistaken on that precise point but prior to 1.0 the language did undergo some very heavy changes throughout the years
<sphalerite> oh but the first stable release of rust was 2014
<sphalerite> so yeah
<eyJhb> Ehh. My list atm. is 1. Look at Haskell 2. Look at Rust 3. Cry
<eyJhb> (PROTIP: Always add cry to todo-lists, then you can never disappoint yourself)
<leons> sphalerite: can recommend watching https://www.youtube.com/watch?v=79PSagCD_AY
<philipp[m]1> Speaking of crying: The cycling season is about to start! Who else is excited? https://soundcloud.com/killowmusic/eurosportandcry
<eyJhb> It is nice of Minecraft to know I might be running NOEXEC on /tmp `INFO: /tmp/libnetty_transport_native_epoll_x86_645749315839084536968.so exists but cannot be executed even when execute permissions set; check volume for "noexec" flag; use -Dio.netty.native.workdir=[path] to set native working directory separately.`
<adisbladis> eyJhb: At least with Go you can type golang and get good results
<philipp[m]1> adisbladis: I also did that with rustlang and it was alright, when I was using it.
<adisbladis> Good to know :)
<adisbladis> I don't do Rust (yet)
<adisbladis> One massive rabbit hole at a time..
<leons> eyJhb: re Haskell, I know the feeling. I've tried to get started with it so many times and always failed. I think the issue is my desire to always write fully-fledged CLI/Network applications, that's way to much complexity at once.
<leons> Recently I've started implementing simple algorithms which map well to the language (for example, simple SAT solvers) and that turns out to be a much better approach to learn the language
<adisbladis> leons: My last attempt at Rust was a super tiny project, but where I wanted to do async
<adisbladis> I spent a couple of hours on tokio, but I'm too dumb for that
<adisbladis> Not a good way to learn Rust
<adisbladis> I think the entire thing took less than an hour in Go
<eyJhb> Go is really really nice
<adisbladis> I mean...
<eyJhb> Also, leons I think haskell can do some pretty complex Netowkring stuff.. But Do not expect me to read it
<adisbladis> Go the language isn't exactly great
<eyJhb> adisbladis: NO!
<eyJhb> Let it stay
<eyJhb> Go is really nice *.*
<adisbladis> Go's standard library is 95% of the value I'd say
<eyJhb> That is meant as a bold period, not a weird ass smiley
<eyJhb> Yeah true..
<adisbladis> eyJhb: I still enjoy writing things in Go
<adisbladis> But I'm under no illusion that the language itself is really a good one
<eyJhb> For anyone wondering, I am guessing none, I got my first PoC of my Minecraft proxy working in Go :p I can imitate the server + throw a disconnect message right at them.
<eyJhb> Eh, I do quite enjoy it and find it quite powerful. It does however have its shortcomings.
<patagonicus> I like Go as a language. It's not perfect, but so far it's the language I enjoy most.
<eyJhb> *nix is also nice, but for other stuff* but yeah, also the langugae I enjoy the most atm.
Synthetica has quit [Quit: Connection closed for inactivity]
julm has joined #nixos-chat
__monty__ has joined #nixos-chat
<eyJhb> Does.. Does anyone have a Craftbukkit module for MC?
<adisbladis> This is hilarious
<joepie91> adisbladis: you've seen the guy with the powerpoint abuse, yeah?
<adisbladis> joepie91: No :D
<joepie91> adisbladis: oh boy you're in for a ride
<eyJhb> *the whole config*
bqv has quit [Quit: WeeChat 3.0.1]
bqv has joined #nixos-chat
<infinisil> Hehe
<infinisil> eyJhb: At one point I want to implement tracking exactly when somebody joins or leaves
<infinisil> And then maybe even bill people based on how long they're on :P (getting cheaper the more people are on at one time)
<__monty__> But free for the first couple? Otherwise there's a bit of an incentive bump, no?
<infinisil> __monty__: incentive bump?
<__monty__> Though that probably matters less when it's friends.
<__monty__> Yeah, like a hump to get over before it picks up. Because playing alone is both the least fun *and* the most expensive.
<infinisil> Ah I see
<__monty__> But if no one plays alone, how can you get to two or more.
kcalvinalvin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<__monty__> If it's more like agree out-of-band to play with a group it's less of an issue.
<infinisil> Yeah
<infinisil> The out-of-band thing makes sense, people would be encouraged to agree to play together
<infinisil> Hmm, I feel like I could make a business out of this
<__monty__> I was kinda thinking of this as a model for providing open servers for fairly cheap.
<__monty__> Yeah, it sounds like a decent business model.
<__monty__> Scale to 0 instead of scale to the minimum monthly cloud payment.
<infinisil> Yee
<infinisil> And minecraft has a huge community
kcalvinalvin has joined #nixos-chat
<infinisil> > timeTo mars
<{^_^}> "5 days, 3 hours, 32 minutes, 6 seconds"
<gchristensen> > timeTo die
<{^_^}> undefined variable 'die' at (string):472:8
<infinisil> > die = date.epochToDateTime builtins.currentTime
<{^_^}> die defined
<infinisil> > timeTo die
<{^_^}> ""
<infinisil> Lol
<adisbladis> It's dead
<__monty__> > roll 1d6
<{^_^}> undefined variable 'roll' at (string):473:1
<gchristensen> > roll = _: 1
<{^_^}> roll defined
<__monty__> > roll = _: 4 # Standard random number
<{^_^}> error: syntax error, unexpected '=', expecting ';', at (string):373:12
<__monty__> : (
<gchristensen> it does't work for a 1d2 :(
<infinisil> Oh damn, can't handle comments
<__monty__> gchristensen: But 1 doesn't work for 2d6.
<__monty__> (╯°□°)╯︵ ┻━┻
<__monty__> ┬─┬ノ( º _ ºノ)
cole-h has joined #nixos-chat
<gchristensen> guhhhhhhh znapzend is fine when everything is fine, and such garbage when things aren't fine
<philipp[m]1> So you say an ideal tool for backups?
<__monty__> : s
<gchristensen> lol
* infinisil agrees
<__monty__> I'm not sure what the proper behavior is when not every target has your snapshot yet though. Since a single copy isn't a backup.
<gchristensen> holding on to the 5minutely snapshots isn't helping anything
<philipp[m]1> btw: Does it play nice with encrypted zfs snapshots (as in sends them encrypted to the remotes without change) yet?
<gchristensen> zrepl does
<gchristensen> (raw sends)
<philipp[m]1> Cool, might want to replace my homegrown mess with that.
<__monty__> Oof yeah that's a high frequency to be holding onto.
<philipp[m]1> Or do I quit playing around with zfs snapshots and just use borbackup? So many questions.
kraem has quit [Ping timeout: 246 seconds]
<gchristensen> I found borgbackup to be quite slow when I wanted to spelunk through it, that is why I don't use it anymore
<infinisil> Once you go zfs you can't go back
kraem has joined #nixos-chat
<philipp[m]1> Do I really want to go spelunking into it though? I'd still have my zfs-auto-snapshots in case I deleted a file and borgbackup would be more of a disaster recovery solution.
<gchristensen> 3-2-1 suggests not putting all your eggs in the zfs basket
<gchristensen> (but I did)
<philipp[m]1> That is a very good argument.
<aleph-> Heh I can't even think of off-site backups for a 7TB dataset.
<aleph-> Looking at two months continuous easy for an initial snapshot
<philipp[m]1> At this point you might just want to ship a few disks.
<aleph-> Eyep. I've taken to just rsyncing files to two externals from my torrent host before they even make it to my nas
<cole-h> gchristensen: I'm currently hacking on a zrepl module (using the one we've previously looked at as a base). Don't have much free time atm, but I think I'll be able to at least have a PR around Monday
<cole-h> Just FYI
<gchristensen> if you do, that is wonderful, znapzend has taken down hydra 2x this week
<cole-h> Yep, that's what prompted this adventure :P
<cole-h> To that end: is there an easy way to use a systemd unit from an upstream package?
rajivr has quit [Quit: Connection closed for inactivity]
<philipp[m]1> aleph-: rsync is great. At my job I just rsync all the critical data to the offsite backup into a zfs data set every day and then snapshot it. Works from all systems (except windows I think but that isn't a concernn for us), it is reasonably fast, has very low complexity and is easy to monitor.
kraem has quit [Read error: Connection reset by peer]
<aleph-> Eyep.
<philipp[m]1> Also shout out to rrsync.
kraem has joined #nixos-chat
kcalvinalvin has quit [Quit: ZNC 1.7.4 - https://znc.in]
kcalvinalvin has joined #nixos-chat
<cole-h> Ah, I think I'm looking for `systemd.packages`
<philipp[m]1> One day I will figure out a better scheme to generate ipv6 addresses than hexdumping /dev/urandom but this day is not today.
lejonet has quit [Ping timeout: 256 seconds]
cole-h has quit [Ping timeout: 272 seconds]
<supersandro2000> rmcgibbo[m]: would it be feasible for the bot or hammering to check for common lib and devs files and suggest adding outputs for them?
<ehmry> philipp[m]1: I use this sometimes `seed: concatStringsSep ":" (map (i: builtins.substring (4 * i) 4 (builtins.hashString "sha256" seed)) [ 0 1 2 3 ])`
<rmcgibbo[m]> Like splitting /include and /lib into separate output drvs?
<ehmry> > mkSufix = seed: concatStringsSep ":" (map (i: builtins.substring (4 * i) 4 (builtins.hashString "sha256" seed)) [ 0 1 2 3 ])
<{^_^}> error: undefined variable 'concatStringsSep' at (string):255:18
<ehmry> > mkSufix = seed: builtins.concatStringsSep ":" (map (i: builtins.substring (4 * i) 4 (builtins.hashString "sha256" seed)) [ 0 1 2 3 ])
<{^_^}> mkSufix defined
<ehmry> >mkSufix "foo"
<ehmry> > mkSufix "foo"
<{^_^}> "2c26:b46b:68ff:c68f"
<gchristensen> lol
<philipp[m]1> ehmry: Oh, that's a neat idea.
<gchristensen> that is cool
<ehmry> deterministic ipv6 addresses are nice if you have a bunch of machines, because then you can populate /etc/hosts and authorized keys in a convergent way
<rmcgibbo[m]> supersandro2000: Maybe we should make a new project (or a new mode inside hammering) where it takes as input the /nix/store directory of a built package and runs checks on the logs or the final derivation and reports its results in the same json format as hammering?
<gchristensen> -> -dev please :)
<rmcgibbo[m]> sry -- will move to dm
<gchristensen> oh no please keep it in public, it is interesting!
<rmcgibbo[m]> :) kk
waleee-cl has joined #nixos-chat
<philipp[m]1> ehmry: I actually have a small kresd for internal name resolution but deterministic IPs would make it easier to maintain it.
<ehmry> philipp[m]1: I figured that out trying to do address allocation in a hackspace with multiple people adding and removing machines
<philipp[m]1> ehmry: ++
lejonet has joined #nixos-chat
<aleph-> Alright I am really hating nixops wrt to some upgrades. Seems no tables can be found in my pg server unless I roll back from nixOS unstable. Grumble
<srk> stateVersion?
monsieurp has quit [Ping timeout: 246 seconds]
monsieurp has joined #nixos-chat
monsieurp_ has joined #nixos-chat
<adisbladis> Thank the gods for pulseaudio/pulseeffects
<adisbladis> I don't know how people do calls without them
<supersandro2000> with windows
<adisbladis> I meant the ability to apply filters to the output
<adisbladis> To remove sibilance and other noise that makes my head hurt
monsieurp has quit [Quit: Lost terminal]
monsieurp_ has quit [Quit: Lost terminal]
<adisbladis> Afaik windows doesn't have that, at least not out of the box
monsieurp has joined #nixos-chat
<energizer> not knowing anything about audio, there is a missing feature in pulseeffects: figure out what filter needs to be applied to this audio
<adisbladis> energizer: Yeah.. I know just enough to use it.
<adisbladis> But I think the bar graphs at the top help a bit with just eyeballing it, at least the frequence response
<adisbladis> But I'm also one of those audiophiles who are pretty good at guesstimating what needs to happen
<supersandro2000> or you just turn down the person that makes weird noises
<adisbladis> In this case I was just talking to one person
<adisbladis> Turning down the volume doesn't help when it's background noise / movement
<adisbladis> But applying a bit of filtering does
<adisbladis> I find it strange that there is no software that's actually good at making calls
<adisbladis> That actually makes a voice sound pleasing on the other end
<adisbladis> It's always a super sibilant hot mess
<__monty__> adisbladis: The trick is to be oblivious as to what sibilance is, BAM, never hear it ; )
<adisbladis> That doesn't work for me :/
<adisbladis> I wish it did
<aleph-> Ugh... okay what the heck is up with postgres in nixos 21.03pre. Completely unable to access my tt_rss db...
<aleph-> Hmm.
<rmcgibbo[m]> anyone know if you can coax github gists to render ansi terminal color codes?
<adisbladis> aleph-: Some statversion thing?
<adisbladis> Did you bump your stateversion?
<adisbladis> (you shouldn't)
<adisbladis> Also this is more #nixos territory
<aleph-> Blah always in the wrong channel
<energizer> rmcgibbo[m]: not sure that's possible, tho Github Pages is likely more flexible than gist
<rmcgibbo[m]> or like a pastebin, maybe that's what i need.
<rmcgibbo[m]> (for r-rmcgibbo uploading build logs)
<energizer> https://github.com/ptpb/pb https://github.com/supakeen/pinnwand are the python pastebins i know of
<rmcgibbo[m]> thanks. i'd prefer not to host my own tho
<hexa-> I maintain the pinnwand/steck pkgs and module in nixos, it's pretty easy to setup
<energizer> those logs will get into gigabytes pretty quickly, not sure which pastebins are ok with that
<rmcgibbo[m]> i could do my own s3+cloudfront, but if possible i'd prefer to just hand them off to someone else if there's a free service :P (which is why i'm currently uploading to gist.github.com, but i find the lack of color annoying)
<energizer> on my pc /nix/var/log is 147M
<adisbladis> 925M /nix/var/log/ :3
<rmcgibbo[m]> it's not that bad if i only upload logs from failing builds. but the people still demand ansi colors! :P
<supersandro2000> rmcgibbo[m]: I would rather go the other way and filter them out with something like | sed -E "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g"
<rmcgibbo[m]> :eyes explode:
<supersandro2000> either we have working or none
<supersandro2000> your emojis do not render on IRC 😂
<supersandro2000> that sed should filter escape codes like \u001b[0
<energizer> i hear github repos are limited to 100GB, and github pages could render them
<supersandro2000> also there are certain build tools which do not recognize that we are headless and send you line clear characters and such
<supersandro2000> and in the log you have 100 lines of garbage
<energizer> but they'll probably send you an email before that
<supersandro2000> maybe we should convert the logs to html and render the escape codes?
<adisbladis> That sounds terrible
<energizer> adisbladis: how far back? find /nix/var/log -type f -printf '%T+ %p\n' | sort | head -n 1
<adisbladis> Couldn't you curl the output if you want to render colours?
<adisbladis> energizer: 2018-08
<energizer> mine's 2020-06
<adisbladis> But I was being slightly dishonest, that's not my laptop
<adisbladis> 194M /nix/var/log/
<adisbladis> 2020-07
<adisbladis> That's my laptop
<energizer> hehe
<adisbladis> energizer: I just wanted to make sure I had a higher number than you ^_^
<adisbladis> That's how you win, right?
<samueldr> 2020-09-24; 222.2MiB
<adisbladis> samueldr: Wait, I'm just gonna change something in stdenv real quick
<samueldr> no fair
<samueldr> not my laptop, but not a dedicated build machine either, it's my workstation where mobile nixos builds happen
<supersandro2000> curling some random log into your terminal sounds not great either
<supersandro2000> that gives you html but github does not like to render that
<supersandro2000> cli is from nix-shell -p python38Packages.ansi2html
<rmcgibbo[m]> yeah -- not sure that's the UX i'd want to recommend people use to casually view r-rmcgibbo logs :yikes:
<supersandro2000> looks actually very good
<supersandro2000> hosting part is missing
<rmcgibbo[m]> https://stackoverflow.com/a/23500744/1079728 gist and 'rawgit'?
<samueldr> finally, managed to reduce the complexity of my issue to a simple thing I can test on a computer without the need to push a boot image to a device, and do some annoying incantation to get the output!
<supersandro2000> rmcgibbo[m]: rawgit is shuting down and does not allow new pastes
<rmcgibbo[m]> The blocks doesn't look rendered to me?
<eyJhb> I don't know what pissing contest energizer and adisbladis are having, but I have `2020-05-30+14:06:28.5349465000` on my laptop!
<eyJhb> Do I win anything?
<adisbladis> eyJhb: What's the size though
<supersandro2000> rmcgibbo[m]: I should have noticed that
<eyJhb> adisbladis: Didn't think we were doing penis meassuring
<eyJhb> adisbladis: `307M /nix/var/log/`
<eyJhb> Do I win again?
<aleph-> heh
<infinisil> > timeTo mars
<{^_^}> "4 days, 21 hours, 13 minutes, 12 seconds"
<aleph-> Heh no time at all.
<infinisil> > newYear
<{^_^}> "The year 2022 is 10 months, 18 days, 1 hour, 55 minutes, 11 seconds away!"
* energizer hands over the trophy to adisbladis
<adisbladis> energizer: I don't have any space for a trophy
<adisbladis> You keep it
<energizer> lol nice
Hurttila has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]