changes
This commit is contained in:
parent
d7f86007ff
commit
63193fb818
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue