nixos-config/config/hardware/nostromo.nix

57 lines
1006 B
Nix

{ config, lib, pkgs, ... }:
{
boot = {
initrd = {
availableKernelModules = [
"ahci"
"ohci_pci"
"ehci_pci"
"megaraid_sas"
"usbhid"
"sd_mod"
"sr_mod"
];
kernelModules = [ "dm-snapshot" ];
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
kernelPackages = pkgs.linuxPackages_latest;
loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
};
nix.maxJobs = lib.mkDefault 24;
hardware.bluetooth.enable = false;
networking = {
macvlans = {
intif0 = {
interface = "eno2";
mode = "bridge";
};
};
interfaces = {
intif0 = {
# output of: echo nostromo-intif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
macAddress = "02:14:25:55:ee:5a";
};
};
};
}