my Nix configuration
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.

47 lines
1.1KB

  1. { config, lib, pkgs, ... }:
  2. {
  3. imports = [
  4. <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
  5. ./.
  6. ];
  7. hardware.yorick = { cpu = "intel"; gpu = "intel"; laptop = true; };
  8. boot = {
  9. loader = {
  10. systemd-boot.enable = true;
  11. efi.canTouchEfiVariables = true;
  12. };
  13. kernelPackages = pkgs.linuxPackages_latest;
  14. };
  15. boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
  16. boot.blacklistedKernelModules = ["psmouse"];
  17. fileSystems."/" =
  18. { device = "/dev/disk/by-uuid/a751e4ea-f1aa-48e1-9cbe-423878e29b62";
  19. fsType = "btrfs";
  20. options = ["defaults" "relatime" "discard"];
  21. };
  22. boot.initrd.luks.devices."nix-crypt" = {
  23. device = "/dev/disk/by-uuid/320ef81d-283f-4916-ac26-ecfb0f31e549";
  24. allowDiscards = true;
  25. };
  26. fileSystems."/boot" =
  27. { device = "/dev/disk/by-uuid/0E07-7805";
  28. fsType = "vfat";
  29. };
  30. swapDevices =
  31. [ { device = "/dev/disk/by-uuid/d9c4c15b-0e9c-47f6-8675-93b1b8de5f9d"; }
  32. ];
  33. nix.maxJobs = lib.mkDefault 4;
  34. # bigger console font
  35. i18n.consoleFont = "latarcyrheb-sun32";
  36. }