xin/hosts/box/hardware-configuration.nix

77 lines
1.4 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
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
}