dot.nix/host/cloud/default.nix
Chris Toph ed2507c9f1 DNS changed in OPNsense, proxy changes
- proxy no longer handles all the redirecting
- caddy modules in service lxcs
2025-01-22 17:28:07 -05:00

48 lines
847 B
Nix

{ modulesPath, config, pkgs, hostName, ... }:
{
## MODULES & IMPORTS ##
imports = [
# Common Modules
../../common/acme
../../common/lxc
../../common/ssh
# Import hardware configuration.
./hardware.nix
# Local Modules
# cron
./modules/cron
# Logrotate
./modules/logrotate
# Caddy
./modules/caddy
# Snapraid-runner
./modules/snapraid
];
## NETWORKING ##
networking.firewall = {
allowedTCPPorts = [ 22 80 443 ];
allowedUDPPorts = [ ];
};
## ENVIORMENT & PACKAGES ##
nixpkgs.overlays = [ (import ./overlays) ];
environment.systemPackages = with pkgs; [
git
mergerfs
micro
openssh
ranger
sshfs
snapraid
snapraid-runner
wget
];
environment.variables = {
HOSTNAME = hostName;
};
}