nixos/spec/chireiden/default.nix

59 lines
1.5 KiB
Nix
Raw Normal View History

2025-01-13 11:52:09 +08:00
{ 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";
2025-01-13 11:52:09 +08:00
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 = {
2024-10-26 01:01:06 +08:00
gnome.enable = true;
2024-02-12 23:30:56 +08:00
vscode.enable = true;
2024-03-05 07:52:44 +08:00
libreoffice.enable = true;
2024-01-07 21:51:53 +08:00
minecraft.enable = true;
steam.enable = true;
};
powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "powersave";
powerManagement.resumeCommands = ''
# trackpad driver resume workaround
${pkgs.kmod}/bin/modprobe -r psmouse
${pkgs.kmod}/bin/modprobe psmouse
'';
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:5:0:0";
2024-01-02 14:53:35 +08:00
};
2025-01-13 11:52:09 +08:00
catppuccin.plymouth.enable = false;
2024-01-02 14:53:35 +08:00
hardware.enableRedistributableFirmware = true;
2025-01-13 11:52:09 +08:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
];
2024-01-02 14:53:35 +08:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
hardware.cpu.intel.updateMicrocode = true;
}