Use DynamicUser in the provided SystemD service
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
Vojtěch Káně
2021-11-19 13:39:16 +01:00
parent 64126b1fc0
commit 699cbfa79e

View File

@@ -59,12 +59,6 @@
};
};
config = lib.mkIf cfg.enable {
users.groups.tinyquiz = {};
users.users.tinyquiz = {
description = "Tinyquiz service user";
group = "tinyquiz";
isSystemUser = true;
};
systemd.services.tinyquiz = {
description = "Tinyquiz service";
wantedBy = [ "multi-user.target" ];
@@ -73,6 +67,7 @@
serviceConfig = {
ExecStart = "${self.packages.x86_64-linux.tinyquiz-web}/bin/web";
User = "tinyquiz";
DynamicUser = true;
};
environment = cfg.config;
};