snowflake/hosts/tsuki/hardware.nix
notohh 47dd2a51a4
All checks were successful
ci/woodpecker/cron/flake-lock-update Pipeline was successful
tsuki: remove loopback
2024-07-17 23:53:33 -04:00

59 lines
1.3 KiB
Nix
Executable file

{
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
kernelModules = ["kvm-amd"];
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 = [];
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/a423d32f-ac5d-4ea2-82fb-f94b05afce29";
fsType = "ext4";
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/FEAF-138A";
fsType = "vfat";
};
"/nas/restic" = {
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/tsuki";
fsType = "nfs";
};
"/nas/osu-backups" = {
device = "192.168.1.199:/mnt/Sutoreji/osu-backups";
fsType = "nfs";
};
};
zramSwap = {
enable = true;
swapDevices = 1;
algorithm = "zstd";
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}