From 63193fb81895b23b97f6f035f5ca83404be56171 Mon Sep 17 00:00:00 2001 From: zack Date: Mon, 21 Oct 2024 21:20:15 -0400 Subject: [PATCH] changes --- flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9b9ea40..a5905f0 100644 --- a/flake.nix +++ b/flake.nix @@ -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;