1
0

switch uid

This commit is contained in:
Daniel Barlow 2025-01-05 12:57:51 +00:00
parent 9fd9b8b878
commit 2f9b0f12f9

View File

@ -21,15 +21,16 @@
let
inherit (pkgs.liminix.services) longrun;
inherit (pkgs) writeText;
nginx_uid = 62;
in {
config = {
users.nginx = {
uid = 52; gid= 52;
uid = nginx_uid; gid= nginx_uid;
dir = "/run/";
shell = "/bin/false";
};
groups.nginx = {
gid= 52;
gid= nginx_uid;
usernames = ["nginx"];
};