46 lines
888 B
Nix
46 lines
888 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
system.stateVersion = "20.03";
|
|
|
|
boot = {
|
|
loader = {
|
|
grub = {
|
|
enable = true;
|
|
version = 2;
|
|
device = "/dev/sda";
|
|
};
|
|
};
|
|
initrd = {
|
|
availableKernelModules =
|
|
[ "ahci" "ohci_pci" "ehci_pci" "usb_storage" "ums_realtek" "sd_mod" ];
|
|
kernelModules = [ ];
|
|
};
|
|
kernelModules = [ "kvm-amd" ];
|
|
extraModulePackages = [ ];
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos-root";
|
|
fsType = "btrfs";
|
|
};
|
|
|
|
swapDevices = [{ device = "/dev/disk/by-label/nixos-swap"; }];
|
|
|
|
hardware = {
|
|
bluetooth.enable = true;
|
|
|
|
opengl = {
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
|
|
pulseaudio.support32Bit = true;
|
|
|
|
cpu.amd.updateMicrocode = true;
|
|
};
|
|
|
|
nix.maxJobs = lib.mkDefault 2;
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
}
|