patos/modules/sysext.nix
Daniel Lundin 86cc203737
Some checks failed
ci/woodpecker/push/ci Pipeline failed
feat(systemd): add and enable systext + confext units
2024-11-11 20:38:22 +01:00

23 lines
501 B
Nix

{ config, pkgs, ... }:
{
system.activationScripts.sysext = ''
mkdir -p /var/lib/confexts
mkdir -p /var/lib/extensions
mkdir -p /etc/systemd/extensions
'';
systemd.additionalUpstreamSystemUnits = [
"systemd-confext.service"
"systemd-sysext.service"
];
systemd.services."systemd-confext" = {
enable = true;
wantedBy = [ "multi-user.target" ];
};
systemd.services."systemd-sysext.service" = {
enable = true;
wantedBy = [ "multi-user.target" ];
};
}