From 266e0aaca33ab96758ebb3ded4dc2cd825b1089e Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 14 Jun 2022 01:22:31 +0900 Subject: Prevent PGP private key from mode 644 --- sourcehut.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'sourcehut.nix') diff --git a/sourcehut.nix b/sourcehut.nix index 20a248f..6d0f2ac 100644 --- a/sourcehut.nix +++ b/sourcehut.nix @@ -17,7 +17,12 @@ # along with loang configuration. If not, see . { config, lib, ... }: -let domain = config.networking.domain; +let + domain = config.networking.domain; + common = { + enable = true; + group = "srht"; + }; in { services = { nginx.virtualHosts."hub.${domain}".serverAliases = lib.mkForce [ ]; @@ -29,14 +34,11 @@ in { sourcehut = { enable = true; - git = { - enable = true; - port = 5200; # 5001 used by IPFS - }; - hub.enable = true; - lists.enable = true; - man.enable = true; - meta.enable = true; + git = common // { port = 5200; }; # 5001 used by IPFS + hub = common; + lists = common; + man = common; + meta = common; nginx = { enable = true; @@ -92,7 +94,7 @@ in { webhooks.private-key = "/var/lib/sourcehut/webhook.key"; }; - todo.enable = true; + todo = common; }; }; } -- cgit 1.4.1