!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

599 Members
NixOS ❤️ systemd167 Servers

Load older messages


SenderMessageTime
6 Mar 2025
@gdamjan:spodeli.orggdamjanimho that's for units pid1 stores itself (for units created by systemd-run/dbus), probably doesn't read from there21:58:58
@gdamjan:spodeli.orggdamjanperhaps nixos should put units in /usr instead of /etc21:59:29
@antifuchs:asf.computerantifuchsdo we even have a /usr 😹22:00:40
@qyliss:fairydust.spaceAlyssa RossYes22:02:00
@gdamjan:spodeli.orggdamjanIIRC /usr/bin/env is required22:02:28
@rvdp:infosec.exchangeRamses 🇵🇸 It's not a crazy idea to put them in /usr, imho, but we'll have to do considerable work to make that happen. We will need to generalise all the stuff used to set up /etc currently, and we'll lose some atomicity when switching generations 22:25:21
@qyliss:fairydust.spaceAlyssa RossWe could just install a symlink to a /etc (or /run/current-system) subdirectory in /usr22:26:29
@eliasp:kde.orgeliasp gdamjan the thing is, it still evaluates the unit in transient, but apparently doesn't apply all directives... Documentation= works, ExecStart= doesn't
nonetheless, I agree that it would be nice to have them all in /usr instead of /etc, but yeah - a looot of work
23:20:04
@eliasp:kde.orgeliasp

but while we're at it - anyone feels like picking up my systemd-localectl-archive-path branch (fix for #267101 and successor of #375062)

I don't have time for it right now and I can't figure out, why my patch shows now effect…

23:22:06
@eliasp:kde.orgeliasp

but while we're at it - anyone feels like picking up my systemd-localectl-archive-path branch (fix for #267101 and successor of #375062)?

I don't have time for it right now and I can't figure out, why my patch shows now effect…

23:22:13
@eliasp:kde.orgeliasp

but while we're at it - anyone feels like picking up my systemd-localectl-archive-path branch (fix for #267101 and successor of #375062)?

I don't have time for it right now and I can't figure out, why my patch shows no effect…

23:22:24
7 Mar 2025
@arianvp:matrix.orgArianI think the fix here is that we shouldn't put nix generated config in /etc we should put it in /nix/store and extend SYSTEMD_UNIT_PATH07:47:07
@arianvp:matrix.orgArianThat's my take07:47:31
@qyliss:fairydust.spaceAlyssa Ross libeconf has the same weird ordering and is being pushed pretty hard for projects to implement the UAPI Group's Configuration Files Specification, so if we continue avoiding /usr for config files it won't just be systemd we need to patch. 08:04:37
@k900:0upti.meK900Does it mean /usr as in /usr08:05:42
@k900:0upti.meK900Or /usr as in $prefix08:05:48
@arianvp:matrix.orgArianWell systemd's build system already doesn't respect $prefix . We patch that in08:06:11
@arianvp:matrix.orgArianFor e.g. udev and tmpfiles08:06:20
@arianvp:matrix.orgArianThey hardcode /usr in the c code08:06:38
@arianvp:matrix.orgArian:(08:06:39
@arianvp:matrix.orgArianIn a lot of places08:06:42
@arianvp:matrix.orgArian* Well systemd's build already doesn't respect $prefix . We patch that in08:06:59
@arianvp:matrix.orgArianBut what I mean is. When we run tools that support pointing to config through a cli argument we should use that08:08:11
@arianvp:matrix.orgArianInstead of /etc08:08:16
@arianvp:matrix.orgArianRun tmpfiles with --definitions ${blah}08:08:35
@arianvp:matrix.orgArianRun systemd with --units-dir ${blah}08:08:50
@arianvp:matrix.orgArianIgnore all this silly FHS stuff 08:09:01
@arianvp:matrix.orgArianPointless waste of time for us08:09:21
@arianvp:matrix.orgArianThings should be in the nix store except for some really rare exceptions08:09:47
@arianvp:matrix.orgArianAnd that approach doesn't require patches 08:10:55

Show newer messages


Back to Room ListRoom Version: 6