!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

902 Members
Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
28 Jul 2025
@marcel:envs.netMarcel * 16:02:08
@marcel:envs.netMarcel * 16:02:33
@marcel:envs.netMarcel *

Ifstate is now in the release candidate phase for V2 so I am preparing to upstream the nix module to nixpkgs. The question is if the options should be under networking.ifstate or services.ifstate or somewhere different? That's how it's currently done in my flake: https://search.nüschtos.de/?scope=IfState.nix

Services.ifstate might not be optimal because it's not a daemon and only runs on boot or rebuild

16:03:46
@adam:robins.wtfadamcstephens networking.ifstate seems reasonable to me 16:06:06
@zhaofeng:zhaofeng.liZhaofeng Liinteresting, what's your setup like? I might do something similar, but for the wrong reasons :p16:13:06
@zhaofeng:zhaofeng.liZhaofeng Li(launch k3s from k8s)16:13:19
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @zhaofeng:zhaofeng.li
interesting, what's your setup like? I might do something similar, but for the wrong reasons :p
uh, i use systemd-nspawn with some convincing and i wrote a simple k3s module for NixNG
16:17:21
@magic_rb:matrix.redalder.orgmagic_rb https://git.sr.ht/~magic_rb/uk3s.nix/tree/master/item/nixos/modules these modules 16:17:52
@magic_rb:matrix.redalder.orgmagic_rb https://git.sr.ht/~magic_rb/uk3s.nix/tree/master/item/nixos/modules/uk3s.nix#L341 this specifically is what you need to run k3s in a nspawn container 16:18:40
@magic_rb:matrix.redalder.orgmagic_rbor itll complain16:18:44
@magic_rb:matrix.redalder.orgmagic_rbthe two env vars are reverse engineered from systemd source code and a lot of trial and error, im still using this setup but im hoping to migrate away, not from nixng+ucontainer but throw out the k3s16:19:26
@zhaofeng:zhaofeng.liZhaofeng Liok, so k3s and flannel basically just work inside a network namespace, good to know16:23:35
@zhaofeng:zhaofeng.liZhaofeng Ligoing to attempt kind of the same thing but with cilium (probably not soon tbh)16:25:47
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @zhaofeng:zhaofeng.li
ok, so k3s and flannel basically just work inside a network namespace, good to know
Im using istio, problem with cilium is that their own test suite is broken, and has been for months, when i tried it, so i couldnt know if it was my problem or their problem when i was debugging it
16:27:42
@magic_rb:matrix.redalder.orgmagic_rbSo i gave up, went to istio16:27:48
@magic_rb:matrix.redalder.orgmagic_rbBut istio is insanely slow, envoy has huge overheads16:29:01
@magic_rb:matrix.redalder.orgmagic_rbI can see envoy burning cpu time when im copying from my nix cache, so im throwing the whole thing out16:29:55
@zhaofeng:zhaofeng.liZhaofeng Lihmm, that doesn't sound too good... basically https://spot.rackspace.com provides cheap compute but their control plane is garbage, so I want to just shove a daemonset up there and run my k3s 🙃16:31:24
@magic_rb:matrix.redalder.orgmagic_rbYeah i wouldnt, pain16:33:01
@magic_rb:matrix.redalder.orgmagic_rbWhat you save on hardware cost youll spend double on your sanity because kubernetes and istio/cilium16:33:20
@zhaofeng:zhaofeng.liZhaofeng Li(with a bit of wireguard and bird magic maybe I can make them join my existing cluster, but yeah, extremely cursedness)16:33:29
@magic_rb:matrix.redalder.orgmagic_rb I went into it enthusiastically trying to make it work, but the whole thing is rotten from the core. 16:33:42
@zhaofeng:zhaofeng.liZhaofeng Li* (with a bit of wireguard and bird magic maybe I can make them join my existing cluster, but yeah, extreme cursedness)16:34:39
@magic_rb:matrix.redalder.orgmagic_rb etcd fucking sucks, its slow as hell. The manifests gets huge very quickly, i can never remember all of the obscure options, networking is a mess, if you want to use the new gateway api youll end up reading issues trying to figure what is or isnt supported, eventually reading tests and source code like me. 16:34:44
@zhaofeng:zhaofeng.liZhaofeng Lican't say much about the gateway api, but etcd basically just works for me though my setup is far from complex16:37:22
@emilazy:matrix.orgemilyit should almost certainly be a systemd daemon, I think17:31:58
@emilazy:matrix.orgemily (it can be a oneshot or similar though) 17:32:10
@emilazy:matrix.orgemilywe don't want to add new activation scripts unless it's completely unavoidable17:32:13
@emilazy:matrix.orgemily(and moving stuff out of activation scripts is being worked on)17:32:36
@emilazy:matrix.orgemily(this doesn't necessarily determine where in the options hierarchy to put it though)17:34:06

Show newer messages


Back to Room ListRoom Version: 6