snowflake/hosts/tsuki/hardware.nix

61 lines
1.4 KiB
Nix
Raw Normal View History

2022-12-06 01:24:54 -05:00
{
2023-04-23 17:45:37 -04:00
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
2024-04-30 20:29:05 -04:00
kernelModules = ["v4l2loopback" "kvm-amd"];
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback.out];
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
initrd = {
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod"];
kernelModules = [];
};
2023-04-23 17:45:37 -04:00
};
2023-06-13 12:11:22 -04:00
fileSystems = {
2024-05-02 00:58:11 -04:00
"/" = {
device = "/dev/disk/by-uuid/a423d32f-ac5d-4ea2-82fb-f94b05afce29";
fsType = "ext4";
};
2024-05-02 00:58:11 -04:00
"/boot/efi" = {
device = "/dev/disk/by-uuid/FEAF-138A";
fsType = "vfat";
2024-02-05 10:06:22 -05:00
};
2024-05-02 00:58:11 -04:00
"/nas/restic" = {
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/tsuki";
2024-02-05 10:06:22 -05:00
fsType = "nfs";
};
2024-05-02 04:20:52 -04:00
"/nas/osu-backups" = {
device = "192.168.1.199:/mnt/Sutoreji/osu-backups";
fsType = "nfs";
};
2023-04-23 17:45:37 -04:00
};
2024-05-02 03:13:14 -04:00
zramSwap = {
enable = true;
swapDevices = 1;
algorithm = "zstd";
};
2022-12-06 01:24:54 -05:00
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2022-12-08 04:45:47 -05:00
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
2024-04-30 20:29:05 -04:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-12-06 01:24:54 -05:00
}