!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

608 Members
NixOS ❤️ systemd172 Servers

Load older messages


SenderMessageTime
17 Feb 2025
@sigmasquadron:matrix.orgSigmaSquadron Hi folks. I'm trying to use the PublicKeyFile setting in systemd.network.netdevs.<name>.wireguardPeers, as described in the manual page, but the module system keeps saying that's an invalid option. 21:43:57
@sigmasquadron:matrix.orgSigmaSquadronIf I understood the module correctly, I think this has to be added manually in line 439-440 in nixos/modules/system/boot/networkd.nix?21:46:26
@m1cr0man:m1cr0man.comm1cr0man
In reply to @arianvp:matrix.org
why doesn’t that get handled by the systemd-nspawn@ unit already
The main problem is imperative containers rather than declarative ones. Since we're creating units ad hoc, we need to prevent the imperative ones getting stopped during config switch
21:50:05
@sigmasquadron:matrix.orgSigmaSquadron
In reply to @sigmasquadron:matrix.org
If I understood the module correctly, I think this has to be added manually in line 439-440 in nixos/modules/system/boot/networkd.nix?
if it is just that easy, i've opened https://github.com/nixos/nixpkgs/pull/382953
21:57:31
18 Feb 2025
@elvishjerricco:matrix.orgElvishJerriccough, this is why I really dislike how we type check networkd configs00:05:44
@elvishjerricco:matrix.orgElvishJerriccowe really need a tool in upstream systemd for checking the validity of networkd files00:06:00
@arianvp:matrix.orgArianI still have an experiment lying around for using systemd-analyze verify on systemd units at build time11:40:04
@stites:matrix.org@stites:matrix.org left the room.12:54:41
@denkn:denkn.at@denkn:denkn.atSomebody know, if it is possible for services, which are oneshot to use sd_notify? Or it is more useful to set Type=notify, als if it is only a short running process, like started by a timer?15:09:04
@gdamjan:spodeli.orggdamjanoneshot services are considered started/activated only when the process ends. so not sure if sd_notify makes sense for them15:18:28
@gdamjan:spodeli.orggdamjanwhat's your use-case?15:18:32
@denkn:denkn.at@denkn:denkn.atIt is a long-running process and it would be nice to check the progress. Logging would be an option, but it is only noisy, nobody needs it later.20:25:11
@denkn:denkn.at@denkn:denkn.atEg backups.20:25:25
@arianvp:matrix.orgArianJust make it Type=notify if it's long-lived20:26:36
@gdamjan:spodeli.orggdamjanbut then you'd … either loose ordering on the service, or risk the job timeout (ie how long systemd waits for a service to activate)23:22:30
@arianvp:matrix.orgArianNo you don't. Ordering works with Type=notify23:24:16
@arianvp:matrix.orgArianThough the ordering will happen after The ready notification of course23:24:57
@gdamjan:spodeli.orggdamjanthat's what I meant23:51:55
19 Feb 2025
@elvishjerricco:matrix.orgElvishJerriccoI wonder how hard it would be to do to systemd what we did to nix 2.26 and componentize the build06:17:06
@elvishjerricco:matrix.orgElvishJerriccowe might be able to rid ourselves of an awful lot of the superfluous systemd dependencies in nixpkgs if we could do that.06:17:52
@arianvp:matrix.orgArianWe had multiple outputs build before07:36:34
@arianvp:matrix.orgArianBiggest problem is sd-path.h which i still dont understand why it was added. Pointless complexity that isn't used internally07:37:06
@arianvp:matrix.orgArianIt causes a cyclic dependency between libsystemd and libsystemd-shared and libsystemd-core and cyclic dependency between libsystemd and some binaries iirc07:37:43
@arianvp:matrix.orgArianBasically turns it into one big mess. I don't understand why we have cycle detection in multiple output derivations though. Robert told me they might remove that feature from nix. But it never happened07:38:18
@arianvp:matrix.orgArianSo yeh if we want it we need to either make nix support cyclic outputs (which should be fine from correctness standpoint I think?) or we need to **heavily** patch systemd07:38:49
@arianvp:matrix.orgArian* So yeh if we want it we need to either make nix support cyclic outputs (which should be fine from correctness standpoint I think?) or we need to **heavily** patch systemd07:39:16
@arianvp:matrix.orgArian* We had multiple outputs build before but it broke with the introduction of sd-path07:39:40
@arianvp:matrix.orgArianAh but nix is multiple derivations? In that case heavy patching is the only solution. To get rid of the cycles between all of systemd's components 07:40:36
@elvishjerricco:matrix.orgElvishJerricco
In reply to @arianvp:matrix.org
Ah but nix is multiple derivations? In that case heavy patching is the only solution. To get rid of the cycles between all of systemd's components
If we can do it in a way that seems like a benefit to upstream, then this isn't a problem
09:28:23
@elvishjerricco:matrix.orgElvishJerriccoI'd have to understand that cyclic dependency better09:29:13

Show newer messages


Back to Room ListRoom Version: 6