2022-07-07 13:33:38 +00:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
crypted = {
|
|
|
|
device = "/dev/disk/by-uuid/c24c9fba-fa0b-41a2-87c1-75edc7b3f64d";
|
|
|
|
preLVM = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/9c6e1dc3-a442-431d-8cf4-6eaf1e45c296";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/3B69-8F97";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/6a44edab-e602-40e9-85c4-cb8517862992";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2023-06-14 06:32:48 +00:00
|
|
|
fileSystems."/var/lib/docker" =
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/1f8dae67-1640-4688-ac86-b0e6f5095d6e";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2022-07-07 13:33:38 +00:00
|
|
|
swapDevices =
|
|
|
|
[{ device = "/dev/disk/by-uuid/b90199d6-05e8-4994-bf9d-7b07f10d583e"; }];
|
|
|
|
|
2023-03-08 09:50:08 +00:00
|
|
|
networking.useDHCP = lib.mkDefault true;
|
2022-07-07 13:33:38 +00:00
|
|
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
2022-07-29 19:16:50 +00:00
|
|
|
# GPU acceleration
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
|
|
|
};
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
intel-media-driver
|
|
|
|
vaapiIntel
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-07-07 13:33:38 +00:00
|
|
|
# high-resolution display
|
|
|
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
|
|
|
}
|