forked from mirrors/nixpkgs
systemd: Enable user systemd instances
This commit is contained in:
parent
5378da25a0
commit
89155dbc01
|
@ -727,5 +727,17 @@ in
|
||||||
})
|
})
|
||||||
(filterAttrs (name: service: service.startAt != "") cfg.services);
|
(filterAttrs (name: service: service.startAt != "") cfg.services);
|
||||||
|
|
||||||
|
# Provide the systemd-user PAM service, required to run systemd
|
||||||
|
# user instances.
|
||||||
|
security.pam.services.systemd-user =
|
||||||
|
{ # Ensure that pam_systemd gets included. This is special-cased
|
||||||
|
# in systemd to provide XDG_RUNTIME_DIR.
|
||||||
|
startSession = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Provide systemd user units. FIXME: Should make this definable,
|
||||||
|
# just like the system units.
|
||||||
|
environment.etc."systemd/user".source = "${systemd}/example/systemd/user";
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue