{ inputs, pkgs, lib, config, ... }: let device = "/dev/nvme0n1"; in { imports = [ inputs.disko.nixosModules.disko inputs.hardware.nixosModules.common-cpu-intel inputs.hardware.nixosModules.common-gpu-intel ]; hardware.firmware = [pkgs.rtw88-firmware]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.enableAllFirmware = true; hardware.bluetooth.enable = true; disko.devices = { disk.${baseNameOf device} = { inherit device; type = "disk"; content = { type = "gpt"; partitions = { boot = { type = "EF00"; size = "512M"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; root = { size = "100%"; content = { type = "luks"; name = "cryptroot"; content = { type = "btrfs"; extraArgs = ["-f"]; subvolumes = { "/nix" = { mountOptions = ["compress=zstd" "noatime"]; mountpoint = "/nix"; }; }; }; }; }; }; }; }; nodev."/" = { fsType = "tmpfs"; mountOptions = [ "size=8G" "defaults" "mode=755" ]; }; }; }