2024-10-18 16:26:44 -04:00
|
|
|
{ config, lib, modulesPath, ... }:
|
|
|
|
{
|
2024-08-24 22:16:51 -04:00
|
|
|
boot = {
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [
|
|
|
|
"nvme"
|
2024-10-18 16:26:44 -04:00
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
2024-08-24 22:16:51 -04:00
|
|
|
];
|
|
|
|
kernelModules = [
|
2024-10-18 16:26:44 -04:00
|
|
|
"dm-snapshot"
|
2024-08-24 22:16:51 -04:00
|
|
|
"vfio"
|
2024-10-18 16:26:44 -04:00
|
|
|
"vfio_pci"
|
|
|
|
"vfio_iommu_type1"
|
|
|
|
"kvm-amd"
|
2024-08-24 22:16:51 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
2024-10-15 02:40:43 -04:00
|
|
|
# Games and such
|
2024-08-24 22:16:51 -04:00
|
|
|
"/mnt/Linux1" = {
|
2024-10-15 02:40:43 -04:00
|
|
|
device = "/dev/disk/by-uuid/b2901f8c-ffda-4b88-bb63-a9ea0c96ccb4";
|
|
|
|
options = [ "nosuid" "nodev" "nofail" "x-gvfs-show" ];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
"/mnt/Linux2" = {
|
2024-10-15 02:40:43 -04:00
|
|
|
device = "/dev/disk/by-uuid/f08e4f38-162c-402f-ba2a-5925151b78bf";
|
|
|
|
options = [ "nosuid" "nodev" "nofail" "x-gvfs-show" ];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
2024-11-05 05:49:14 -05:00
|
|
|
"/mnt/Linux3" = {
|
|
|
|
device = "/dev/disk/by-uuid/e7bc75bd-c371-4b28-b212-7be9b1fad339";
|
|
|
|
options = [ "nosuid" "nodev" "nofail" "x-gvfs-show" ];
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
"/mnt/Windows1" = {
|
2024-10-15 02:40:43 -04:00
|
|
|
device = "/dev/disk/by-uuid/10BC97B2BC979138";
|
|
|
|
options = [ "nosuid" "nodev" "noauto" ];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
"/mnt/Windows2" = {
|
2024-10-15 02:40:43 -04:00
|
|
|
device = "/dev/disk/by-uuid/0A5A3420237C863A";
|
|
|
|
options = [ "nosuid" "nodev" "noauto" ];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
2024-10-15 02:40:43 -04:00
|
|
|
|
2024-11-05 05:49:14 -05:00
|
|
|
# Bulk storage mounts
|
|
|
|
"/persist/var/lib/libvirt" = {
|
|
|
|
device = "/dev/disk/by-uuid/abf78669-de2a-4afa-8e62-604f4e4cb355";
|
|
|
|
options = [ "subvol=libvirt" "nosuid" "nodev" "nofail" ];
|
|
|
|
};
|
|
|
|
"/persist/home/jimbo/VMs" = {
|
|
|
|
device = "/dev/disk/by-uuid/abf78669-de2a-4afa-8e62-604f4e4cb355";
|
|
|
|
options = [ "subvol=images" "nosuid" "nodev" "nofail" ];
|
|
|
|
};
|
|
|
|
|
2024-10-15 02:40:43 -04:00
|
|
|
# Network mounts
|
2024-10-26 00:54:20 -04:00
|
|
|
"/home/jimbo/JimboNFS" = {
|
|
|
|
device = "${config.ips.server}:/export/JimboNFS";
|
2024-10-24 05:44:59 -04:00
|
|
|
fsType = "nfs4";
|
|
|
|
options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ];
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|