{ inputs, pkgs, lib, config, modulesPath, ... }: let device = "/dev/nvme0n1"; in { imports = [ inputs.disko.nixosModules.disko inputs.hardware.nixosModules.common-cpu-intel inputs.hardware.nixosModules.common-gpu-intel (modulesPath + "/virtualisation/qemu-vm.nix") ]; 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; fileSystems."/nix/persist".neededForBoot = 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"; }; "/nix/persist" = { mountOptions = ["compress=zstd" "noatime"]; mountpoint = "/nix/persist"; }; }; }; # }; }; }; }; }; nodev."/" = { fsType = "tmpfs"; mountOptions = [ "size=2G" "defaults" "mode=755" ]; }; }; }