summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kaiser2025-03-03 16:15:30 +0100
committerDominik Kaiser2025-03-03 16:15:30 +0100
commit592ba0ebf91b7170708601e9729fa71135a293c7 (patch)
treeabde21b90f1cb1a9fa60548ed8238faac075aa98
parentb63e4c314a0d7a066770341be7985a4047ae0c5b (diff)
downloadnixos-592ba0ebf91b7170708601e9729fa71135a293c7.tar.gz
nixos-592ba0ebf91b7170708601e9729fa71135a293c7.zip
Setup mcserver config on antares
-rw-r--r--hosts/antares/configuration.nix13
1 files changed, 12 insertions, 1 deletions
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 - -"