xin/hosts/box/hardware-configuration.nix

82 lines
1.6 KiB
Nix
Raw Normal View History

2023-09-12 08:44:05 -06:00
{ ... }: {
boot = {
initrd = {
availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" "wireguard" ];
extraModulePackages = [ ];
};
2022-08-25 12:21:35 -06:00
hardware.enableRedistributableFirmware = true;
2023-09-12 08:44:05 -06:00
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/248dfcf7-999b-4dba-bfbf-0b10dbb376b1";
fsType = "ext4";
};
2022-08-25 12:21:35 -06:00
2024-06-27 11:32:25 -06:00
"/external" = {
device = "/dev/disk/by-uuid/e73b7f14-a921-4d06-813a-0655583d8948";
fsType = "ext4";
};
2023-09-12 08:44:05 -06:00
"/home" = {
device = "rpool/home";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/backups" = {
device = "rpool/backups";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/media/music" = {
device = "rpool/media/music";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/media/movies" = {
device = "rpool/media/movies";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/media/pictures" = {
device = "rpool/pictures";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/media/tv" = {
device = "rpool/media/tv";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/media/nextcloud" = {
device = "rpool/nextcloud";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/media/git" = {
device = "rpool/git";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/media/downloads" = {
device = "rpool/downloads";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/db/postgres" = {
device = "rpool/db/postgres";
fsType = "zfs";
};
2022-08-25 12:21:35 -06:00
2023-09-12 08:44:05 -06:00
"/boot" = {
device = "/dev/disk/by-uuid/2AC3-DB6C";
fsType = "vfat";
};
2022-08-25 12:21:35 -06:00
};
2023-09-12 08:44:05 -06:00
swapDevices = [{ device = "/dev/disk/by-uuid/97d6ef56-ea18-493b-aac0-e58e773ced30"; }];
2022-08-25 12:21:35 -06:00
}