66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [
|
|
"uhci_hcd"
|
|
"ehci_pci"
|
|
"ata_piix"
|
|
"hpsa"
|
|
"usb_storage"
|
|
"usbhid"
|
|
"sd_mod"
|
|
"sr_mod"
|
|
];
|
|
kernelModules = [ ];
|
|
};
|
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
externalModulePackages = [ ];
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
loader.grub = {
|
|
enable = true;
|
|
version = 2;
|
|
device = "/dev/disk/by-label/nixos-root";
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-label/nixos-root";
|
|
fsType = "btrfs";
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-label/nixos-boot";
|
|
fsType = "ext4";
|
|
};
|
|
};
|
|
|
|
swapDevices = [{ device = "/dev/disk/by-label/nixos-swap"; }];
|
|
|
|
nix.maxJobs = lib.mkDefault 12;
|
|
|
|
hardware.bluetooth.enable = false;
|
|
|
|
networking = {
|
|
macvlans = {
|
|
intif0 = {
|
|
interface = "enp3s0f1";
|
|
mode = "bridge";
|
|
};
|
|
};
|
|
|
|
interfaces = {
|
|
intif0 = {
|
|
# output of: echo lambda-intif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
|
macAddress = "02:f5:fe:8c:22:fe";
|
|
};
|
|
};
|
|
};
|
|
}
|