From: Dominik Kaiser Date: Mon, 3 Mar 2025 15:15:30 +0000 (+0100) Subject: Setup mcserver config on antares X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;h=592ba0ebf91b7170708601e9729fa71135a293c7;p=config%2Fnixos.git Setup mcserver config on antares --- 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 - -"