summaryrefslogtreecommitdiff
path: root/hosts/antares/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/antares/configuration.nix')
-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 - -"