dot.nix/host/cloud/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

71 lines
1.2 KiB
Nix

{ modulesPath, config, pkgs, ... }:
let
hostname = "cloud";
in {
## MODULES & IMPORTS ##
imports = [
# Common Modules
../../common/acme
../../common/lxc
../../common/ssh
# Import hardware configuration.
./hardware.nix
# Local Modules
# cron
./modules/cron
# Logrotate
./modules/logrotate
# Nextcloud
./modules/nextcloud
# Nginx
./modules/nginx
# Snapraid-runner
./modules/snapraid
];
## NETWORKING ##
networking = {
firewall = {
allowedTCPPorts = [ 22 80 443 ];
allowedUDPPorts = [ ];
};
dhcpcd.enable = false;
hostName = hostname;
networkmanager.enable = true;
useDHCP = false;
useHostResolvConf = false;
};
systemd.network = {
enable = true;
networks."50-eth0" = {
matchConfig.Name = "eth0";
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = true;
};
linkConfig.RequiredForOnline = "routable";
};
};
## PACKAGES ##
nixpkgs.overlays = [ (import ./overlays) ];
environment.systemPackages = with pkgs; [
git
mergerfs
micro
openssh
ranger
sshfs
snapraid
snapraid-runner
wget
];
}