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" = {
|
users.users."zoeyscomputer-phx" = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "zoeyscomputer-phx";
|
group = "zoeyscomputer-phx";
|
||||||
|
home = working_directory; # Add this
|
||||||
|
createHome = true; # Add this
|
||||||
};
|
};
|
||||||
users.groups."zoeyscomputer-phx" = {};
|
users.groups."zoeyscomputer-phx" = {};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d '${working_directory}' 0750 zoeyscomputer-phx zoeyscomputer-phx - -"
|
||||||
|
];
|
||||||
|
|
||||||
# Configure PostgreSQL authentication for our user
|
# Configure PostgreSQL authentication for our user
|
||||||
services.postgresql.authentication = mkBefore ''
|
services.postgresql.authentication = mkBefore ''
|
||||||
local ${cfg.phx.database.name} ${cfg.phx.database.user} scram-sha-256
|
local ${cfg.phx.database.name} ${cfg.phx.database.user} scram-sha-256
|
||||||
|
|
@ -189,7 +195,8 @@
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "exec";
|
Type = "exec";
|
||||||
User = "zoeycomputer-phx";
|
User = "zoeyscomputer-phx";
|
||||||
|
Group = "zoeyscomputer-phx"; # Add this
|
||||||
# DynamicUser = true;
|
# DynamicUser = true;
|
||||||
WorkingDirectory = working_directory;
|
WorkingDirectory = working_directory;
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue