psd service: assert that at least one user must be configured
Using the default config, a user will experience a run-time failure. This is poor UX, assert the requirement up-front.
This commit is contained in:
parent
4697f83984
commit
230994a30a
@ -86,6 +86,12 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
assertions = [
|
||||||
|
{ assertion = cfg.users != [];
|
||||||
|
message = "services.psd.users must contain at least one user";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
services = {
|
services = {
|
||||||
psd = {
|
psd = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user