!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

599 Members
NixOS ❤️ systemd165 Servers

Load older messages


SenderMessageTime
11 Oct 2024
@mjm:midna.devmjm maybe services.foo.enablePreservation? 18:26:37
@antifuchs:asf.computerantifuchsonly tangentially related to systemd itself, but if anyone else is using vector for aggregating logs, here's a thing that lets you use systemd credentials with it https://github.com/antifuchs/vector-systemd-secrets18:28:24
@elvishjerricco:matrix.orgElvishJerricco tangentially related, I wonder if there's some overlay magic that could be done, so that instead of having /persist and its bind mounts, the rootfs is just an overlay of some persistent FS and a tmpfs, such that the persistent FS does take writes but only for the directories it already had... 18:28:38
@mjm:midna.devmjmidk this is a whole other thing, it just seems like right now you have to do some digging to figure out where a service keeps state, and it seems like the service module can encode that information and make it easy to persist a service with a simple flag18:29:14
@mjm:midna.devmjmi wanna introduce something in my own system configs to do it automatically for systemd state directories, so you just say "persist these services" and it does the right thing based on the unit config. that was impossible with impermanence, because it used systemd services itself for some things so you would get infinite recursion18:30:29
@mjm:midna.devmjmand that would not be an issue with preservation18:30:34
@emilazy:matrix.orgemily
In reply to @mjm:midna.dev
maybe services.foo.enablePreservation?
that sounds reasonable (though I don't like the name)
18:30:33
@elvishjerricco:matrix.orgElvishJerricco antifuchs: very nice; I don't really know what vector is but I always really like seeing systemd credentials getting good use :) 18:30:36
@emilazy:matrix.orgemilyalthough18:30:37
@emilazy:matrix.orgemilyit reminds me of like, opening firewall stuff18:30:41
@emilazy:matrix.orgemilywhich I'm also uneasy about when we do it in modules18:30:47
@mjm:midna.devmjm
In reply to @emilazy:matrix.org
which I'm also uneasy about when we do it in modules
why's that?
18:31:08
@mjm:midna.devmjm
In reply to @emilazy:matrix.org
that sounds reasonable (though I don't like the name)
not like i spent a ton of time figuring out the right name :) just thinking about the concept
18:31:24
@aloisw:kde.orgaloisw
In reply to @elvishjerricco:matrix.org
tangentially related, I wonder if there's some overlay magic that could be done, so that instead of having /persist and its bind mounts, the rootfs is just an overlay of some persistent FS and a tmpfs, such that the persistent FS does take writes but only for the directories it already had...
There's rewritefs, but I don't know how well it works. Also FUSE.
18:31:27
@emilazy:matrix.orgemilyI don't like it when system-wide policy intrudes into modules for specific functionality18:31:32
@emilazy:matrix.orgemilywhether you want an OpenSSH daemon running and whether you want port 22 open aren't necessarily the same thing18:31:41
@mjm:midna.devmjm oh, i was thinking about the openFirewall flags that are separate 18:32:02
@emilazy:matrix.orgemilyin general modules "helpfully" twiddling settings in other modules that aren't actually required makes me a bit uncomfortable18:32:03
@emilazy:matrix.orgemilythough of course in this case it'd be opt-in18:32:07
@emilazy:matrix.orgemily
In reply to @mjm:midna.dev
oh, i was thinking about the openFirewall flags that are separate
right
18:32:12
@mjm:midna.devmjmright, i think it's fine if it's opt-in at least18:32:18
@emilazy:matrix.orgemilythe layering just feels weird to me sometimes18:32:18
@emilazy:matrix.orgemilyI think: I'd rather be passing something from this module to the firewall module18:32:24
@mjm:midna.devmjmwell, layering in nixos modules is always gonna be wild18:32:28
@mjm:midna.devmjmjust cuz of how the module system works18:32:38
@aloisw:kde.orgaloisw
In reply to @emilazy:matrix.org
I think: I'd rather be passing something from this module to the firewall module
It pretty much does that though?
18:32:56
@emilazy:matrix.orgemilyanyway I think we can land the bare functionality with no conveniences and then decide how we want to integrate systemd state directories into it18:33:05
@mjm:midna.devmjm
In reply to @emilazy:matrix.org
anyway I think we can land the bare functionality with no conveniences and then decide how we want to integrate systemd state directories into it
yeah for sure
18:33:13
@emilazy:matrix.orgemily
In reply to @aloisw:kde.org
It pretty much does that though?
what I mean is that I'd rather be setting something under networking.firewall than asking another module to set something under networking.firewall. but, we don't have nice ways for modules to "talk" like that currently, so meh
18:33:43
@emilazy:matrix.orgemily like ideally I'd want to say something like persist.services = [ services.postgresql ]; 18:34:01

Show newer messages


Back to Room ListRoom Version: 6