summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2020-07-31 00:20:27 +0300
committerIzorkin <izorkin@elven.pw>2020-08-05 11:19:32 +0300
commit1a0e633c600805cae48e09f2ecae5201fa369ba0 (patch)
treec9a3d389fdc2884fd26dc0772ceb2c439f5e26ff /nixos/modules
parent4e68da6337638e49af9a17b0857196a60934c13f (diff)
downloadnixpkgs-1a0e633c600805cae48e09f2ecae5201fa369ba0.tar
nixpkgs-1a0e633c600805cae48e09f2ecae5201fa369ba0.tar.gz
nixpkgs-1a0e633c600805cae48e09f2ecae5201fa369ba0.tar.bz2
nixpkgs-1a0e633c600805cae48e09f2ecae5201fa369ba0.tar.lz
nixpkgs-1a0e633c600805cae48e09f2ecae5201fa369ba0.tar.xz
nixpkgs-1a0e633c600805cae48e09f2ecae5201fa369ba0.tar.zst
nixpkgs-1a0e633c600805cae48e09f2ecae5201fa369ba0.zip
nixos/gitea: enable pid file
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/gitea.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix
index 28609f8ec8a..e672440564a 100644
--- a/nixos/modules/services/misc/gitea.nix
+++ b/nixos/modules/services/misc/gitea.nix
@@ -448,8 +448,11 @@ in
         User = cfg.user;
         Group = "gitea";
         WorkingDirectory = cfg.stateDir;
-        ExecStart = "${gitea}/bin/gitea web";
+        ExecStart = "${gitea}/bin/gitea web --pid /run/gitea/gitea.pid";
         Restart = "always";
+        # Runtime directory and mode
+        RuntimeDirectory = "gitea";
+        RuntimeDirectoryMode = "0755";
 
         # Filesystem
         ProtectHome = true;