66 lines
1.6 KiB
Nix
66 lines
1.6 KiB
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [
|
||
|
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||
|
];
|
||
|
|
||
|
boot = {
|
||
|
loader.systemd-boot.enable = true;
|
||
|
loader.efi.canTouchEfiVariables = true;
|
||
|
cleanTmpDir = true;
|
||
|
kernelPackages = pkgs.linuxPackages_4_19;
|
||
|
initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||
|
kernelModules = [ "kvm-intel" "wl" ];
|
||
|
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||
|
};
|
||
|
|
||
|
hardware = {
|
||
|
cpu.intel.updateMicrocode = true;
|
||
|
enableAllFirmware = true;
|
||
|
enableKSM = true;
|
||
|
opengl = {
|
||
|
driSupport = true;
|
||
|
extraPackages = with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau ];
|
||
|
driSupport32Bit = true;
|
||
|
extraPackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel libvdpau-va-gl vaapiVdpau ];
|
||
|
};
|
||
|
|
||
|
pulseaudio = {
|
||
|
enable = true;
|
||
|
support32Bit = true;
|
||
|
package = pkgs.pulseaudioFull;
|
||
|
zeroconf.discovery.enable = false;
|
||
|
extraClientConf = ''
|
||
|
autospawn = no
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
bluetooth = {
|
||
|
enable = true;
|
||
|
powerOnBoot = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fileSystems."/" =
|
||
|
{ device = "/dev/disk/by-uuid/4f0a49f8-04f6-437c-ad5d-b0a82a7251ef";
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
|
||
|
fileSystems."/boot" =
|
||
|
{ device = "/dev/disk/by-uuid/2860-11F4";
|
||
|
fsType = "vfat";
|
||
|
};
|
||
|
|
||
|
swapDevices =
|
||
|
[ { device = "/dev/disk/by-uuid/c50ad046-8bfd-4248-8195-7a0d370b641f"; }
|
||
|
];
|
||
|
|
||
|
powerManagement = {
|
||
|
enable = true;
|
||
|
cpuFreqGovernor = "powersave";
|
||
|
};
|
||
|
|
||
|
time.timeZone = "Europe/Berlin";
|
||
|
}
|