!kjdutkOsheZdjqYmqp:nixos.org

Empty Room

1911 Members
400 Servers

Load older messages


SenderMessageTime
15 Jan 2025
@matthewcroughan:defenestrate.itmatthewcroughanguess the application needs to report that state via something else like a socket19:52:11
@matthewcroughan:defenestrate.itmatthewcroughanor I could make my own program that returns 1 until there is a OSC pong/return from the UDP port on 19:52:49
@matthewcroughan:defenestrate.itmatthewcroughan * or I could make my own program that returns 1 until there is a OSC pong/return from the UDP port19:52:52
@lily:lily.flowers@lily:lily.flowers
In reply to @matthewcroughan:defenestrate.it
Is there a nixos test function for wait_for_open_port that uses udp instead of tcp
i mean you can wait_until_succeeds a command that checks ss -ul output for bind, like https://github.com/NixOS/nixpkgs/blob/f4120b8ab4abd21b8f0c3002e3ed22869ed2c646/nixos/tests/armagetronad.nix#L156
20:05:07
@matthewcroughan:defenestrate.itmatthewcroughan nice! 20:07:52
@matthewcroughan:defenestrate.itmatthewcroughanis there a machine.succeed that takes a user id argument yet?20:08:08
@matthewcroughan:defenestrate.itmatthewcroughanor a username arg20:08:12
@matthewcroughan:defenestrate.itmatthewcroughanto run cmds as users in the vm test20:08:16
@hellwolf:matrix.orghellwolfis there way to limit diskspace a build uses?21:01:09
@emma:rory.gayEmma [it/its]on that note, i'd be cool if there was a way to know an estimate of build closure size before building21:05:04
@emma:rory.gayEmma [it/its]ie. as something in the meta section or whatever, would prevent quite a lot of "out of disk space" -> gc -> start over cycles for me21:05:36
@hellwolf:matrix.orghellwolf

also, what exactly does nix limit, in terms of network access?

also, what does this statement mean:

except that fixed-output derivations do not run in private network namespace to ensure they can access the network

21:10:50
@hellwolf:matrix.orghellwolf *

also, what exactly does nix limit, in terms of network access?

and what does this statement mean:

except that fixed-output derivations do not run in private network namespace to ensure they can access the network

21:11:01
@mjm:midna.devmjmfixed-output derivations are things like fetchers: derivations where the hash of the output must be known ahead of time21:26:12
@mjm:midna.devmjmso they are allowed to access the network since we can verify what they produce is exactly what we expect21:26:39
@hellwolf:matrix.orghellwolfbut it could be an unlimited download in an edge case?21:29:06
@mjm:midna.devmjmi don't think anything is limiting the size of the download. there's nothing intercepting the network activity afaik21:30:20
@hellwolf:matrix.orghellwolfcontext: I am trying to convince people behind play.haskell.org that nix can do the same thing for sandboxed builds, and better.21:31:09
@hellwolf:matrix.orghellwolfsince I am porting it to my use case, and I try to use nix there.21:31:27
@hellwolf:matrix.orghellwolfso the disk space and network access restriction is what I am after.21:31:39
@hellwolf:matrix.orghellwolf* so the definitive answers to disk space and network access restriction is what I am after.21:31:45
@hellwolf:matrix.orghellwolfcurrently, that service has its own ad-hoc solution of using bubblewrap/systemd etc.21:32:24
@mjm:midna.devmjmafaik nix does nothing to try to restrict disk space in a build. and network access restriction is all-or-nothing.21:39:00
@mjm:midna.devmjmidk if nix is actually a good fit for something like a code playground21:39:11
@hellwolf:matrix.orghellwolfcould you elaborate? what would be the main issue?21:43:59
@mjm:midna.devmjmit just doesn't seem built for that particular task is all21:44:14
@mjm:midna.devmjmit makes use of a sandbox to enforce its own constraints, but i don't think it really exposes the sandbox as a product feature in the way a code playground would want to use it21:45:30
@hellwolf:matrix.orghellwolf

right.

the thing is, that playground is not necessarily written with any magic neither. as far as I can tell, what nix provides as it is already on par if not better

21:55:55
@magic_rb:matrix.redalder.org@magic_rb:matrix.redalder.org
In reply to @hellwolf:matrix.org

right.

the thing is, that playground is not necessarily written with any magic neither. as far as I can tell, what nix provides as it is already on par if not better

For the playground as much as i hate to say it use OCI or bubblewrap
21:58:45
@magic_rb:matrix.redalder.org@magic_rb:matrix.redalder.orgYou can build the OCI rootfs with Nix, but using nix builds is uh, not great21:59:01

Show newer messages


Back to Room ListRoom Version: 6