add homelab, nc

This commit is contained in:
iofq 2024-10-19 13:15:43 -05:00
parent ab7d7e6b81
commit e179c6e9d5
10 changed files with 206 additions and 40 deletions

View file

@ -4,7 +4,8 @@
];
environment.systemPackages = with pkgs; [
git
vim
nvim-pkg
docker-compose
];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = false;
@ -14,6 +15,7 @@
size = 4 * 1024;
}
];
virtualisation.docker.enable = true;
networking = {
hostName = "consensus";
firewall = {
@ -21,19 +23,25 @@
allowedTCPPorts = [
22
2022
3610
6443
25565
9002
30001
30303
30304
];
allowedUDPPorts = [
9002
30001
30303
30304
];
logRefusedConnections = true;
};
};
services = {
tailscale.enable = true;
k3s = {
enable = true;
role = "server";
@ -58,7 +66,10 @@
isNormalUser = true;
extraGroups = ["wheel"];
home = "/home/e";
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHM4Zr0PFN7QdOG2aJ+nuzRCK6caulrpY6bphA1Ppl8Y e@t14''];
openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHM4Zr0PFN7QdOG2aJ+nuzRCK6caulrpY6bphA1Ppl8Y e@t14''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAdo4PS8myKaKAdyIqSFj2VJ+oZ9DNRIp7PBz8IWKjjy''
];
};
};
security.sudo.wheelNeedsPassword = false;