2024-01-05 22:27:04 +08:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, ... }: {
|
2024-01-07 22:01:31 +08:00
|
|
|
global = {
|
2024-01-08 18:19:07 +08:00
|
|
|
id = "eeb44fb1150944aab7d146b7caad789f";
|
2024-01-05 22:27:04 +08:00
|
|
|
auth.openssh.enable = true;
|
|
|
|
fs.esp.uuid = "B20E-5994";
|
|
|
|
fs.type = "xfs";
|
|
|
|
fs.store = "e8eea851-51b0-4c29-80c4-3d9358c4f3f8";
|
2024-01-21 20:43:50 +08:00
|
|
|
fs.external.enable = true;
|
|
|
|
fs.external.device = "/dev/disk/by-uuid/f0e13b58-1223-479c-b673-3a8e629c7f72";
|
|
|
|
fs.external.fsType = "ext4";
|
2024-01-05 22:27:04 +08:00
|
|
|
fs.cryptsetup.enable = true;
|
|
|
|
fs.cryptsetup.uuids.nix = "84baa53a-c76d-4716-813a-196f5a53e44d";
|
|
|
|
fs.cryptsetup.uuids.persist = "e31f8b1c-6504-4b43-93dd-997ad17ebf5e";
|
|
|
|
boot.lanzaboote = true;
|
2024-01-27 22:14:03 +08:00
|
|
|
gpu.enable = true;
|
|
|
|
gpu.type = "prime";
|
2024-01-05 22:27:04 +08:00
|
|
|
asusd.enable = true;
|
2024-01-12 19:33:39 +08:00
|
|
|
oci.enable = true;
|
2024-01-05 22:27:04 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
home = {
|
2024-02-12 15:18:12 +08:00
|
|
|
gnome.enable = true;
|
2024-01-11 10:52:22 +08:00
|
|
|
gyroflow.enable = true;
|
2024-01-05 22:27:04 +08:00
|
|
|
minecraft.enable = true;
|
2024-01-07 21:52:20 +08:00
|
|
|
minecraft.allUsers = true;
|
|
|
|
steam.enable = true;
|
|
|
|
steam.allUsers = true;
|
2024-01-05 22:27:04 +08:00
|
|
|
};
|
|
|
|
|
2024-01-07 13:58:45 +08:00
|
|
|
powerManagement.enable = true;
|
|
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
|
|
|
2024-01-05 22:27:04 +08:00
|
|
|
hardware.nvidia.prime = {
|
|
|
|
amdgpuBusId = "PCI:6:0:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
|
|
|
|
imports = lib.pipe ./. [
|
|
|
|
builtins.readDir
|
|
|
|
(lib.filterAttrs (n: ty: ty == "regular" && n != "default.nix"))
|
|
|
|
(lib.mapAttrsToList (n: _: ./${n}))
|
|
|
|
];
|
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "sd_mod" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
}
|