summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-03 21:02:21 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-03 21:09:41 +0100
commit19931b872863f27fe65dc06fe7e2c095aaddf840 (patch)
treeb48e84f77273be046dfb726b25f55a95e21560b0
parent530dec28da62ebf612fe9f094db0dd6e9c7f5515 (diff)
gitea conf
-rw-r--r--roles/git-server.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/git-server.nix b/roles/git-server.nix
index 2e6e0f7..935f75f 100644
--- a/roles/git-server.nix
+++ b/roles/git-server.nix
@@ -1,12 +1,20 @@
{ ... }:
{
+ services.openssh.settings.AllowUsers = [ "git" ];
+ users.groups.git = {};
users.users.git = {
isSystemUser = true;
- hashedPassword = "$6$/HNLIUOZZmm/OZjK$.t6uB3L2vHq9oSfMv7421ubA3xv3NuCu8zAguQalNt7X5uj9ZuZbXJW3/VTfnIrY9S8KIq.YQ8hgEyts0RLAq0";
+ group = "git";
+ hashedPassword = "$6$Rc//lmBr5orYHn.0$M9y3Zj4zCe723r8hYGIhPC5kPv5SVGHjF1FsjrT9IIx7trxuNTLtLDQVL9lhmR5/7bFMUFEf0CMx9w7.vgXgY0";
};
- services.openssh.settings.AllowUsers = [ "git" ];
services.gitea = {
enable = true;
appName = "JAP56 Git Server";
+ group = "git";
+ user = "git";
+ settings.server = {
+ HTTP_PORT = 80;
+ DOMAIN = "snorlax";
+ };
};
}