blob: 386f547b806e4a9e7b8932288b5426cf1f9de813 (
plain) (
tree)
|
|
{ config, lib, pkgs, modulesPath, ... }:
let
powerMode = "schedutil";
in
{
imports = [ ];
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "aesni_intel" "cryptd" ];
kernelModules = [ ];
};
kernelModules = [ "kvm_intel" ];
extraModulePackages = [ ];
kernelParams = [ "net.ifnames=0" "biosdevname=0" "iomem=relaxed" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/4D55-C906";
fsType = "vfat";
};
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
};
boot.initrd.luks.devices."encrypted_nix".device = "/dev/disk/by-uuid/e1b9b878-e1de-4311-98b6-681874831a5e";
fileSystems."/nix" = {
device = "/dev/mapper/encrypted_nix";
fsType = "btrfs";
neededForBoot = true;
options = [ "subvol=nix" "compress-force=zstd" "noatime" ];
};
boot.initrd.luks.devices."encrypted_home_and_persist".device = "/dev/disk/by-uuid/47a8ddde-1237-4a0f-84c4-f17fbd22ea3f";
fileSystems."/persist" = {
device = "/dev/mapper/encrypted_home_and_persist";
fsType = "btrfs";
neededForBoot = true;
options = [ "subvol=persist" "compress-force=zstd" "noatime" ];
};
fileSystems."/home" = {
device = "/dev/mapper/encrypted_home_and_persist";
fsType = "btrfs";
options = [ "subvol=home" "compress-force=zstd" ];
};
swapDevices = [ ];
powerManagement.cpuFreqGovernor = powerMode;
services = {
xserver = {
videoDrivers = [ "intel" ];
# Enable touchpad support (enabled default in most desktopManager).
synaptics = {
enable = true;
palmDetect = true;
twoFingerScroll = true;
minSpeed = "1.0";
maxSpeed = "1.12";
accelFactor = "0.01";
};
};
fstrim.enable = true;
tlp.enable = true;
};
hardware = {
opengl = {
enable = true;
driSupport = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
};
};
}
|