summaryrefslogtreecommitdiff
path: root/configuration/snorlax/gitea.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-03 21:56:21 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-03 21:58:17 +0100
commitfa83bdc5067417e3407241b17116a560c9d86b61 (patch)
tree187fe6802049fceeadb3e6fe3bf4c33579625530 /configuration/snorlax/gitea.nix
parent91bd5252699ca471fa33defda502558864cdaff0 (diff)
move around alot of stuff
Diffstat (limited to 'configuration/snorlax/gitea.nix')
-rw-r--r--configuration/snorlax/gitea.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/configuration/snorlax/gitea.nix b/configuration/snorlax/gitea.nix
new file mode 100644
index 0000000..8b814d9
--- /dev/null
+++ b/configuration/snorlax/gitea.nix
@@ -0,0 +1,27 @@
+{ ... }:
+{
+ users.groups.git = {};
+ users.users.git = {
+ isSystemUser = true;
+ group = "git";
+ hashedPassword = "$6$Rc//lmBr5orYHn.0$M9y3Zj4zCe723r8hYGIhPC5kPv5SVGHjF1FsjrT9IIx7trxuNTLtLDQVL9lhmR5/7bFMUFEf0CMx9w7.vgXgY0";
+ openssh.authorizedKeys.keyFiles = [
+ ../../keys/id_tarrel.pub
+ ../../keys/id_work.pub
+ ];
+ };
+
+ services.gitea = {
+ enable = true;
+ appName = "JAP56 Git Server";
+ group = "git";
+ user = "git";
+ settings.server = {
+ HTTP_PORT = 80;
+ DOMAIN = "snorlax";
+ };
+ useWizard = true;
+ };
+
+ services.openssh.settings.AllowUsers = [ "git" ];
+}