haccfiles/hosts/parsons/configuration.nix

32 lines
767 B
Nix
Raw Normal View History

2021-07-29 20:31:52 +00:00
{ config, lib, pkgs, sources, modules, ... }:
{
imports = [
../../common
./hardware.nix
modules.encboot
2021-08-04 13:59:35 +00:00
modules.network.nftables modules.nftnat
2021-07-29 20:31:52 +00:00
((import sources.nix-hexchen) {}).profiles.nopersist
];
hexchen.encboot = {
enable = true;
dataset = "-a";
networkDrivers = [ "igb" ];
};
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ];
boot.supportedFilesystems = [ "zfs" ];
networking.hostId = "b2867696";
networking.useDHCP = true;
2021-08-04 13:59:35 +00:00
networking.nftables.enable = true;
hexchen.nftables.nat.enable = true;
networking.nat.internalInterfaces = ["ve-+"];
networking.nat.externalInterface = "enp35s0";
2021-07-29 20:31:52 +00:00
system.stateVersion = "21.05";
}