diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-02-03 21:31:48 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-02-03 21:32:04 +0100 |
commit | 91bd5252699ca471fa33defda502558864cdaff0 (patch) | |
tree | 8672ca1b6d531d9785063fa688f99328047acbfe /configuration | |
parent | 19931b872863f27fe65dc06fe7e2c095aaddf840 (diff) |
stuff
Diffstat (limited to 'configuration')
-rw-r--r-- | configuration/gitea.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/configuration/gitea.nix b/configuration/gitea.nix new file mode 100644 index 0000000..f9e48f4 --- /dev/null +++ b/configuration/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 = [ + ../files/id_tarrel.pub + ../files/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" ]; +} |