{ pkgs, ... }: { imports = [ ../modules/workstation ../modules/nixos-hardware/lenovo/thinkpad/x220 ]; hardware.enableRedistributableFirmware = true; boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.kernelModules = [ "kvm-intel" ]; boot.kernelPackages = pkgs.linuxPackages_latest; boot.loader.systemd-boot.enable = true; boot.initrd.luks.devices."nixos-decrypted".device = "/dev/disk/by-uuid/bb59aa96-f934-4900-a98b-a364b8dccefe"; fileSystems."/" = { device = "/dev/disk/by-uuid/002e2225-6a03-4692-bac2-f57e5588ee49"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/5FED-1194"; fsType = "vfat"; }; swapDevices = [ { device = "/dev/disk/by-partuuid/201f5472-f45e-49b7-88c9-7fd9458a30f7"; randomEncryption = true; } ]; nix.maxJobs = 4; powerManagement.cpuFreqGovernor = "powersave"; networking.hostName = "x220"; system.stateVersion = "18.09"; users.users.qyliss.hashedPassword = "$5$rounds=1000000$tySRQ3rdqbPOduux$NcW7CoffEScpmOyS0Ga9gE5ZNLt8PT6.2Gvwn91vQn7"; hardware.opengl.enable = true; hardware.opengl.extraPackages = with pkgs; [ libGL ]; }