Skip to content

Commit

Permalink
Use DynamicUser in the provided SystemD service
Browse files Browse the repository at this point in the history
  • Loading branch information
vojta001 committed Nov 19, 2021
1 parent 64126b1 commit 699cbfa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand All @@ -73,6 +67,7 @@
serviceConfig = {
ExecStart = "${self.packages.x86_64-linux.tinyquiz-web}/bin/web";
User = "tinyquiz";
DynamicUser = true;
};
environment = cfg.config;
};
Expand Down

0 comments on commit 699cbfa

Please sign in to comment.