nixos/spec/chireiden/default.nix

52 lines
1.5 KiB
Nix
Raw Normal View History

{ pkgs, ... }: {
2024-01-07 22:01:31 +08:00
global = {
2024-01-02 14:53:35 +08:00
id = "5d3c16fe58444e12ad621600039f10af";
fs.esp.uuid = "32A5-6257";
fs.type = "xfs";
fs.store = "c0408dd5-dfc1-42e3-b925-2f32407d320a";
2024-01-21 20:43:50 +08:00
fs.external.enable = true;
fs.external.device = "/dev/disk/by-uuid/af2b8ec5-62d8-4b14-8ba8-083cc4fb33f4";
fs.external.fsType = "btrfs";
fs.external.options = [ "noatime" "compress=zstd" ];
2024-01-02 14:53:35 +08:00
fs.cryptsetup.enable = true;
fs.cryptsetup.uuids.nix = "3905f87f-7b11-49ef-8ddf-f4202c555ffd";
fs.cryptsetup.uuids.persist = "b2322f01-1c44-433f-a995-4ddce5845cf9";
2024-01-04 15:24:09 +08:00
boot.lanzaboote = true;
2024-01-27 22:14:03 +08:00
gpu.enable = true;
gpu.type = "prime";
2024-01-05 18:02:07 +08:00
android.enable = true;
};
2024-01-07 21:51:53 +08:00
home = {
minecraft.enable = true;
steam.enable = true;
};
powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "powersave";
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:5:0:0";
2024-01-02 14:53:35 +08:00
};
# trackpad driver resume workaround
systemd.services.trackpad-workaround = {
description = "Reload trackpad driver";
after = [ "suspend.target" ];
wantedBy = [ "suspend.target" ];
path = with pkgs; [ kmod ];
script = ''
modprobe -r psmouse
modprobe psmouse
'';
};
2024-01-02 14:53:35 +08:00
hardware.enableRedistributableFirmware = true;
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
hardware.cpu.intel.updateMicrocode = true;
}