dot.nix/host/proxy/default.nix
Chris Toph ee1ed4739e Complete Merge of all Hosts
WIP but should should be mostly working
2024-09-22 01:07:26 -04:00

61 lines
1 KiB
Nix

{ modulesPath, config, pkgs, ... }:
let
hostname = "proxy";
admin = "toph";
password = "[REDACTED]";
timeZone = "America/New_York";
defaultLocale = "en_US.UTF-8";
in {
## MODULES & IMPORTS ##
imports = [
# Common Modules
../../common/acme
../../common/lxc
../../common/ssh
# Import hardware configuration.
./hardware.nix
# Local Modules
# caddy
./modules/caddy
];
## NETWORKING ##
networking = {
firewall = {
allowedTCPPorts = [ 22 80 443 ];
allowedUDPPorts = [ ];
};
dhcpcd.enable = false;
hostName = hostname;
networkmanager.enable = true;
useHostResolvConf = false;
};
systemd.network = {
enable = true;
networks."50-net0" = {
matchConfig.Name = "net0";
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
linkConfig.RequiredForOnline = "routable";
};
};
## PACKAGES ##
environment.systemPackages = with pkgs; [
git
micro
openssh
ranger
sshfs
];
}