23 lines
487 B
Nix
23 lines
487 B
Nix
{ ... }:
|
|
{
|
|
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" ];
|
|
};
|
|
}
|