{ pkgs, ... }: { imports = [ ../modules/nixos-hardware/lenovo/thinkpad/x220 ../modules/persistence ../modules/workstation/hardware/bluetooth ../modules/workstation/physical ]; hardware.enableRedistributableFirmware = true; boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" "i915" ]; boot.kernelModules = [ "kvm-intel" ]; boot.loader.grub.enable = false; boot.loader.generic-extlinux-compatible.enable = true; boot.initrd.postDeviceCommands = '' mkdir /mnt mount /dev/mapper/root /mnt btrfs subvolume delete /mnt/boot btrfs subvolume create /mnt/boot umount /mnt ''; boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/c28ed0c0-4fa9-4d8a-a771-5fddac61adda"; fileSystems."/" = { device = "/dev/disk/by-uuid/c068093d-512b-43d3-a4c3-cab52a190bfd"; fsType = "btrfs"; options = [ "subvol=boot" ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/c068093d-512b-43d3-a4c3-cab52a190bfd"; fsType = "btrfs"; options = [ "subvol=persist/safe/home" ]; }; fileSystems."/nix" = { device = "/dev/disk/by-uuid/c068093d-512b-43d3-a4c3-cab52a190bfd"; fsType = "btrfs"; options = [ "subvol=persist/local/nix" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/6F69-3310"; fsType = "vfat"; }; fileSystems."/persist" = { device = "/dev/disk/by-uuid/c068093d-512b-43d3-a4c3-cab52a190bfd"; fsType = "btrfs"; options = [ "subvol=persist" ]; }; fileSystems."/srv" = { device = "/dev/disk/by-uuid/c068093d-512b-43d3-a4c3-cab52a190bfd"; fsType = "btrfs"; options = [ "subvol=persist/safe/srv" ]; }; fileSystems."/var/lib/machines" = { device = "/dev/disk/by-uuid/c068093d-512b-43d3-a4c3-cab52a190bfd"; fsType = "btrfs"; options = [ "subvol=persist/safe/var/lib/machines" ]; }; networking.hostName = "x220"; system.stateVersion = "22.05"; users.users.qyliss.hashedPassword = "$5$rounds=1000000$tySRQ3rdqbPOduux$NcW7CoffEScpmOyS0Ga9gE5ZNLt8PT6.2Gvwn91vQn7"; hardware.opengl.enable = true; hardware.opengl.extraPackages = with pkgs; [ libGL ]; }