From 592ba0ebf91b7170708601e9729fa71135a293c7 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Mon, 3 Mar 2025 16:15:30 +0100 Subject: [PATCH] Setup mcserver config on antares --- hosts/antares/configuration.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hosts/antares/configuration.nix b/hosts/antares/configuration.nix index e72215f..7ecb088 100644 --- a/hosts/antares/configuration.nix +++ b/hosts/antares/configuration.nix @@ -118,6 +118,15 @@ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAyqscjK+LsOvAMbIyDtIoWAZwTeDLv9Mu9WAlDUPLyL" ]; }; + users.users.mcserver = { + isSystemUser = true; + group = "mcserver"; + home = "/srv/mcserver"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICtL2eG098LhkFPR4N5e44XMq60uvCUCOuKMYs5zjg6f" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAyqscjK+LsOvAMbIyDtIoWAZwTeDLv9Mu9WAlDUPLyL" + ]; + }; services.gitDaemon = { enable = true; @@ -128,7 +137,9 @@ users.groups.git = {}; - networking.firewall.allowedTCPPorts = [ 80 443 9418 ]; + networking.firewall.allowedTCPPorts = [ 80 443 9418 53 ]; + networking.firewall.allowedUDPPorts = [ 53 ]; + systemd.tmpfiles.rules = [ "d /srv/git 755 git git - -" -- 2.47.2