Add host surgat and move weechat to it.

This commit is contained in:
Tim Schubert 2020-12-30 15:11:19 +01:00
parent 186fb9d017
commit cbfe1f0d11
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
6 changed files with 68 additions and 16 deletions

43
hosts/surgat/default.nix Normal file
View file

@ -0,0 +1,43 @@
{ config, pkgs, lib, ... }:
let
hostName = "surgat";
this = import ../.. {};
keys = ../../pkgs/keys/keys;
in {
imports = [ this.profiles.base ];
networking.hostName = hostName;
dadada.admin = {
enable = true;
users = [ "dadada" ];
};
dadada.networking.vpnExtension = "4";
dadada.weechat.enable = true;
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
networking.firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [
22 # SSH
80 443 # HTTPS
];
allowedUDPPorts = [
51234 # Wireguard
];
};
security.acme = {
email = "d553a78d-0349-48db-9c20-5b27af3a1dfc@dadada.li";
acceptTerms = true;
};
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
}