snowflake/hosts/yuki/hardware-configuration.nix
notohh 6e595b86d7
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
hosts: move jellyfin to yuki
2023-09-17 14:06:53 -04:00

50 lines
1.2 KiB
Nix

{
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/56f5b5b9-9ab5-4c05-be80-2e34405bfbd9";
fsType = "ext4";
};
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/4E08-C711";
fsType = "vfat";
};
fileSystems."/nas" = {
device = "192.168.1.71:/volume1/yuki";
fsType = "nfs";
};
fileSystems."/home/notoh/docker/stash/data" = {
device = "192.168.1.71:/volume1/stash";
fsType = "nfs";
};
fileSystems."/media" = {
device = "192.168.1.71:/volume1/media";
fsType = "nfs";
};
swapDevices = [
{device = "/dev/disk/by-uuid/34a9e234-35da-4140-b231-2bb983a5204b";}
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}