Merge branch 'main' of github.com:JulienMalka/nix-config

This commit is contained in:
Julien Malka 2022-02-26 22:43:17 +01:00
commit e6a52b60db
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
24 changed files with 451 additions and 37 deletions

View file

@ -1,5 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
@ -38,6 +37,7 @@
subdomain = "docs";
};
};
homer.enable = true;
bruit = {
enable = true;
nginx = {
@ -68,7 +68,7 @@
prefixLength = 120;
}];
networking.nameservers = [ "8.8.8.8" ];
networking.nameservers = [ "10.100.0.2" ];
networking.hostId = "fbb334ae";
services.zfs.autoSnapshot.enable = true;
services.zfs.autoScrub.enable = true;
@ -76,8 +76,7 @@
system.stateVersion = "21.11";
networking.firewall = {
allowedTCPPorts = [ ];
networking.firewall = {
allowedUDPPorts = [ 51820 ];
};
networking.nat.enable = true;
@ -123,10 +122,18 @@
publicKey = "TAIP4faPBx6gk1cifC6fdfIP6slo1ir+HMVKxQXBejo=";
}
{
allowedIPs = [ "10.100.0.8" ];
allowedIPs = [ "10.100.0.8/32" ];
publicKey = "EmWRWnZfr60ekm4ZLdwa6gXU6V3p39p6tWOZ03dL+DA=";
}
];
{
allowedIPs = [ "10.100.0.9/32" ];
publicKey = "z85y4nc+7O7t2I4VqP0SAKJOD46PlkXoEPiuGOBS+SI=";
}
{
allowedIPs = [ "10.100.0.10/32" ];
publicKey = "SJ9tflQps1kssFsgVGLhqSSVKNPDspd+5xVMSu/aqk4=";
}
];
};
};
@ -134,10 +141,13 @@
services.nginx.virtualHosts."jellyfin.mondon.me" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://10.100.0.4";
};
};
}