NixOS Advanced Virtual Infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. { config, lib, pkgs, ... }:
  2. {
  3. imports = [ <nixos-hardware/purism/librem/13v3> ];
  4. boot.initrd.availableKernelModules = [ "ahci" "nvme" ];
  5. boot.initrd.kernelModules = [ "dm-snapshot" ];
  6. boot.kernelModules = [ "i915" "kvm-intel" "vfat" "ieee80211_crypt_tkip" ];
  7. boot.extraModulePackages = [ ];
  8. fileSystems."/" =
  9. { device = "/dev/disk/by-uuid/13edef15-425f-45b5-8e2b-c6a6bec5d536";
  10. fsType = "ext4";
  11. };
  12. swapDevices =
  13. [ { device = "/dev/disk/by-uuid/89e0fa0a-1028-4558-9bff-e90061e3ac44"; }
  14. ];
  15. nix.maxJobs = lib.mkDefault 4;
  16. powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
  17. # High-DPI console
  18. console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
  19. boot.loader.grub = {
  20. enable = true;
  21. version = 2;
  22. enableCryptodisk = true;
  23. device = "/dev/disk/by-id/nvme-INTEL_SSDPEKKW512G8_BTHH812200PR512D";
  24. extraInitrd = /boot/initrd.keys.gz;
  25. };
  26. boot.initrd.luks.devices = {
  27. root= {
  28. device = "/dev/disk/by-uuid/d355ed2a-0b08-48f3-8578-e334f886e62b";
  29. preLVM = true;
  30. keyFile = "/keyfile.bin";
  31. };
  32. };
  33. networking.useDHCP = false;
  34. networking.interfaces.wlp1s0.useDHCP = true;
  35. # i915 is a bitch
  36. # boot.kernelParams = [ "i915.enable_psr=0" ];
  37. }