From 8dab54e2b3c4d0c946e1a24cad6bf23e552b2b36 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 4 Feb 2024 21:44:11 +0100 Subject: [PATCH] nixos/gogs: prefer 'umask' over 'chmod' --- nixos/modules/services/misc/gogs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/gogs.nix b/nixos/modules/services/misc/gogs.nix index 9bf7e4aab814..cea3d4806944 100644 --- a/nixos/modules/services/misc/gogs.nix +++ b/nixos/modules/services/misc/gogs.nix @@ -217,7 +217,6 @@ in sed -e "s,#secretkey#,$KEY,g" \ -e "s,#dbpass#,$DBPASS,g" \ -i ${runConfig} - chmod 440 ${runConfig} ${secretKey} ''} mkdir -p ${cfg.repositoryRoot} @@ -239,6 +238,7 @@ in WorkingDirectory = cfg.stateDir; ExecStart = "${pkgs.gogs}/bin/gogs web"; Restart = "always"; + UMask = "0027"; }; environment = {