65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
system.stateVersion = "20.03";
|
|
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
initrd = {
|
|
availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" "rtsx_usb_sdmmc" ];
|
|
kernelModules = [ ];
|
|
};
|
|
kernelModules = [ "kvm-intel" ];
|
|
extraModulePackages = [ ];
|
|
};
|
|
|
|
fileSystems."/" =
|
|
{ device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" =
|
|
{ device = "/dev/disk/by-label/BOOT";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
hardware = {
|
|
bluetooth.enable = true;
|
|
|
|
cpu.intel.updateMicrocode = true;
|
|
|
|
opengl = {
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
|
|
pulseaudio.support32Bit = true;
|
|
};
|
|
|
|
networking = {
|
|
macvlans = {
|
|
intif0 = {
|
|
interface = "enp3s0";
|
|
mode = "bridge";
|
|
};
|
|
};
|
|
|
|
interfaces = {
|
|
enp3s0 = {
|
|
useDHCP = false;
|
|
};
|
|
|
|
intif0 = {
|
|
macAddress = pkgs.lib.network.generate-mac-address config.instance.hostname "intif0";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.xserver.videoDrivers = [ "intel" ];
|
|
nix.maxJobs = lib.mkDefault 4;
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
}
|