nix-config/nixos/agares/configuration.nix
2022-04-10 11:35:37 +02:00

69 lines
1.2 KiB
Nix

{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
];
dadada = {
admin.enable = true;
networking.localResolver.enable = true;
};
networking.hostName = "agares";
networking.domain = "dadada.li";
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
boot.kernelParams = [
"console=ttyS0,115200"
"amd_iommu=on"
"iommu=pt"
];
boot.kernelModules = [
"kvm-amd"
"vfio"
"vfio_iommu_type1"
"vfio_pci"
"vfio_virqfd"
];
networking.interfaces.enp2s0.useDHCP = false;
networking.interfaces.enp3s0.useDHCP = false;
networking.interfaces.enp1s0.useDHCP = true;
networkinng.vlans = {
vpn = {
id = 12;
interface = "enp1s0";
};
};
networking.interfaces.vpn.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
networking.firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [
22 # SSH
];
};
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [
curl
flashrom
dmidecode
];
system.stateVersion = "22.05";
}