68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
initrd = {
|
|
availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
|
kernelModules = [ ];
|
|
};
|
|
kernelModules = [ "kvm-intel" ];
|
|
extraModulePackages = [ ];
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/zbox-root";
|
|
fsType = "btrfs";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-label/BOOT";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices = [{ device = "/dev/disk/by-label/zbox-swap"; }];
|
|
|
|
hardware = {
|
|
bluetooth.enable = true;
|
|
|
|
cpu.intel.updateMicrocode = true;
|
|
|
|
opengl = {
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
|
|
# extraPackages32 = with pkgs.i686Linux; [ libva ];
|
|
};
|
|
|
|
pulseaudio = {
|
|
support32Bit = true;
|
|
package = pkgs.pulseaudioFull;
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
macvlans = {
|
|
intif0 = {
|
|
interface = "eno1";
|
|
mode = "bridge";
|
|
};
|
|
};
|
|
|
|
interfaces = {
|
|
intif0 = {
|
|
# output of: echo clunk-intif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
|
macAddress = "02:dd:80:52:83:9b";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
nix.maxJobs = lib.mkDefault 8;
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
}
|