From e9220bb31e1a61d14c99801650c69c0a5cabda74 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 25 May 2026 15:23:25 +0900 Subject: [PATCH] temmie/userweb: use `www-data`s UID + GID for backwards compat --- hosts/temmie/services/userweb/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/temmie/services/userweb/default.nix b/hosts/temmie/services/userweb/default.nix index a905021..a8bb681 100644 --- a/hosts/temmie/services/userweb/default.nix +++ b/hosts/temmie/services/userweb/default.nix @@ -243,6 +243,14 @@ in # ]; # }; + # NOTE: 54 -> 33, this is the UID/GID we used for www-data on tom in the past. + # Any files accessed by or created by httpd will do so over NFS with this + # UID/GID pair as its credentials. + # This overlaps with the hardcoded `disnix` uid in nixpkgs, but we *probably* + # won't be using that for the foreseeable future. + users.users."wwwrun".uid = lib.mkForce 33; + users.groups."wwwrun".gid = lib.mkForce 33; + systemd.services.httpd = { after = [ "pvv-homedirs.target" ]; requires = [ "pvv-homedirs.target" ];