61 lines
1,023 B
Nix
61 lines
1,023 B
Nix
{ modulesPath, config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
hostname = "proxy";
|
|
|
|
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";
|
|
};
|
|
};
|
|
|
|
## ENVIORMENT & PACKAGES ##
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
micro
|
|
openssh
|
|
ranger
|
|
sshfs
|
|
];
|
|
|
|
environment.variables = {
|
|
HOSTNAME = hostname;
|
|
};
|
|
}
|