69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [
|
|
"ahci"
|
|
"ohci_pci"
|
|
"ehci_pci"
|
|
"megaraid_sas"
|
|
"usbhid"
|
|
"sd_mod"
|
|
"sr_mod"
|
|
];
|
|
kernelModules = [ "dm-snapshot" ];
|
|
};
|
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
externalModulePackages = [ ];
|
|
|
|
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 = "eno1";
|
|
mode = "bridge";
|
|
};
|
|
|
|
extif0 = {
|
|
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";
|
|
};
|
|
|
|
extif0 = {
|
|
# echo nostromo-extif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
|
macAddress = "02:cf:d7:de:f9:ad";
|
|
};
|
|
};
|
|
};
|
|
}
|