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 let
inherit (pkgs.liminix.services) longrun; inherit (pkgs.liminix.services) longrun;
inherit (pkgs) writeText; inherit (pkgs) writeText;
nginx_uid = 62;
in { in {
config = { config = {
users.nginx = { users.nginx = {
uid = 52; gid= 52; uid = nginx_uid; gid= nginx_uid;
dir = "/run/"; dir = "/run/";
shell = "/bin/false"; shell = "/bin/false";
}; };
groups.nginx = { groups.nginx = {
gid= 52; gid= nginx_uid;
usernames = ["nginx"]; usernames = ["nginx"];
}; };