This commit is contained in:
zack 2024-10-21 21:20:15 -04:00
parent d7f86007ff
commit 63193fb818
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35

View file

@ -127,9 +127,15 @@
users.users."zoeyscomputer-phx" = {
isSystemUser = true;
group = "zoeyscomputer-phx";
home = working_directory; # Add this
createHome = true; # Add this
};
users.groups."zoeyscomputer-phx" = {};
systemd.tmpfiles.rules = [
"d '${working_directory}' 0750 zoeyscomputer-phx zoeyscomputer-phx - -"
];
# Configure PostgreSQL authentication for our user
services.postgresql.authentication = mkBefore ''
local ${cfg.phx.database.name} ${cfg.phx.database.user} scram-sha-256
@ -189,7 +195,8 @@
};
serviceConfig = {
Type = "exec";
User = "zoeycomputer-phx";
User = "zoeyscomputer-phx";
Group = "zoeyscomputer-phx"; # Add this
# DynamicUser = true;
WorkingDirectory = working_directory;
PrivateTmp = true;