!UUqahLbShAYkkrXmKs:matrix.org

DevOS

35 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
15 Oct 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)Why not?20:38:43
@timdeh:matrix.org@timdeh:matrix.orgunless you wanna start an effort to redefine all the existing NixOS modules from scratch using some other format, then a NixOS runtime is the only viable runtime 😆20:40:02
@timdeh:matrix.org@timdeh:matrix.orgthere is already the aforementioned OCI builder derivation for simple stuff20:40:24
@timdeh:matrix.org@timdeh:matrix.orgAlthough maybe Nix should advertise more how awesome it is at building these containers! Because I think it is probably the best container builder frontend to docker/OCI that exists atm.20:41:10
@blaggacao:matrix.orgDavid Arnold (blaggacao) The category "NixOs runtime" is not really precise. It's more "artifact runtime". 20:48:55
@blaggacao:matrix.orgDavid Arnold (blaggacao)* The category "NixOs runtime" is not really precise: it's more "artifact runtime".20:49:10
@blaggacao:matrix.orgDavid Arnold (blaggacao)NixOs containers are NixOS artifacts.20:49:26
@timdeh:matrix.org@timdeh:matrix.orgwell yeah, I wasn't aiming for exact precision in this context 😛20:49:42
@blaggacao:matrix.orgDavid Arnold (blaggacao) But it's important to avoid the "Nixos-bias" 😆 20:50:05
@timdeh:matrix.org@timdeh:matrix.orgI reserve that brain exhausting exercise for when I actually enter the code editor 🙂20:50:09
@blaggacao:matrix.orgDavid Arnold (blaggacao)So the conclusion is NixosContainer artifacts have no reason to not be OCI compliant artifacts.20:50:43
@blaggacao:matrix.orgDavid Arnold (blaggacao)(no evident [to me] reason)20:50:57
@timdeh:matrix.org@timdeh:matrix.orgIn theory yes20:51:00
@timdeh:matrix.org@timdeh:matrix.orgBut it's difficult enough at least that nobody has yet to bother trying 20:51:20
@blaggacao:matrix.orgDavid Arnold (blaggacao)Afaik oci-compliance is a tar that specifies a runnable entrypoint.20:51:39
@blaggacao:matrix.orgDavid Arnold (blaggacao)(through a json manifest)20:51:55
@timdeh:matrix.org@timdeh:matrix.orgYeah, I don't think the compliance part is the difficult part, its the "actually get systemd working" part that will be rough seas20:52:20
@blaggacao:matrix.orgDavid Arnold (blaggacao)Why? If it's PID1?20:52:52
@timdeh:matrix.org@timdeh:matrix.orgunless we just go for inception and put an nspawn container inside an OCI container 😛20:52:57
@timdeh:matrix.org@timdeh:matrix.orgGive it a try and you tell me20:53:07
@timdeh:matrix.org@timdeh:matrix.org I mean, if nobody else does, I intend to try it someday as well 20:53:33
@blaggacao:matrix.orgDavid Arnold (blaggacao)Seems to work with appropriate privilidges.20:53:45
@blaggacao:matrix.orgDavid Arnold (blaggacao)And redhat ses to have a wrapper that make it work without privilidges.20:54:10
@timdeh:matrix.org@timdeh:matrix.orgdid you find some example already?20:54:33
@blaggacao:matrix.orgDavid Arnold (blaggacao)Redacted or Malformed Event20:54:44
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/projectatomic/oci-systemd-hook20:54:46
@timdeh:matrix.org@timdeh:matrix.orgoh wow, I don't know how I didn't find that when I looked 😅20:55:19
@blaggacao:matrix.orgDavid Arnold (blaggacao) So it seems actually pretty feasible in practice. Which really presses the question why the nixos ecosystem seems incapable of embracing it. 20:55:43
@timdeh:matrix.org@timdeh:matrix.orgIt is at risk of being horribly outdated though it seems20:55:46
@blaggacao:matrix.orgDavid Arnold (blaggacao)I think the only real answer is: bias20:55:54

Show newer messages


Back to Room ListRoom Version: 6