2024-10-15 17:46:44 -04:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
2024-08-24 22:16:51 -04:00
|
|
|
{
|
2024-10-07 11:42:34 -04:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2024-08-24 22:16:51 -04:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
blacklistedKernelModules = [
|
|
|
|
"pcspkr"
|
2024-10-22 07:51:39 -04:00
|
|
|
];
|
2024-08-24 22:16:51 -04:00
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [
|
|
|
|
"xhci_pci"
|
2024-10-20 20:29:38 -04:00
|
|
|
"ehci_pci"
|
|
|
|
"ahci"
|
|
|
|
"nvme"
|
|
|
|
"usbhid"
|
|
|
|
"sd_mod"
|
|
|
|
"sr_mod"
|
2024-08-24 22:16:51 -04:00
|
|
|
];
|
|
|
|
kernelModules = [
|
|
|
|
"kvm-intel"
|
|
|
|
];
|
|
|
|
};
|
2024-10-09 03:36:08 -04:00
|
|
|
swraid = {
|
|
|
|
enable = true;
|
2024-10-20 20:29:38 -04:00
|
|
|
mdadmConf = "MAILADDR jimbo@jimbosfiles.com";
|
2024-10-09 03:36:08 -04:00
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
2024-10-22 07:51:39 -04:00
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" ];
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@home" ];
|
|
|
|
};
|
|
|
|
"/nix" = {
|
|
|
|
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@nix" ];
|
|
|
|
};
|
|
|
|
"/var" = {
|
|
|
|
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@var" ];
|
|
|
|
};
|
|
|
|
"/.snapshots" = {
|
|
|
|
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@snapshots" ];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
"/boot" = {
|
2024-10-22 07:51:39 -04:00
|
|
|
device = "/dev/disk/by-uuid/CD94-1D3F";
|
2024-08-24 22:16:51 -04:00
|
|
|
fsType = "vfat";
|
2024-10-22 07:51:39 -04:00
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
"/export/JimboNFS" = {
|
|
|
|
device = "/dev/disk/by-uuid/713fcd92-534c-4153-8e04-e0c6fe5f6a51";
|
|
|
|
fsType = "ext4";
|
|
|
|
noCheck = true;
|
|
|
|
};
|
2024-10-07 11:42:34 -04:00
|
|
|
|
|
|
|
# Atrocity of bindmounts
|
2024-08-24 22:16:51 -04:00
|
|
|
"/home/jimbo/JimboNFS" = {
|
|
|
|
device = "/export/JimboNFS";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
"/mnt/nextcloud/data/JimboNFS" = {
|
|
|
|
device = "/export/JimboNFS";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
"/var/lib/bitwarden_rs" = {
|
|
|
|
device = "/export/JimboNFS/System/var/lib/bitwarden_rs";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
2024-10-22 07:51:39 -04:00
|
|
|
"/var/lib/forgejo" = {
|
|
|
|
device = "/export/JimboNFS/System/var/lib/forgejo";
|
2024-08-24 22:16:51 -04:00
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
"/var/lib/matrix-synapse" = {
|
|
|
|
device = "/export/JimboNFS/System/var/lib/matrix-synapse";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
"/var/lib/nextcloud" = {
|
|
|
|
device = "/export/JimboNFS/System/var/lib/nextcloud";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
"/var/lib/owncast" = {
|
|
|
|
device = "/export/JimboNFS/System/var/lib/owncast";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
2024-08-30 14:15:38 -04:00
|
|
|
"/var/lib/mastodon" = {
|
|
|
|
device = "/export/JimboNFS/System/var/lib/mastodon";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
"/srv/minecraft" = {
|
|
|
|
device = "/export/JimboNFS/System/srv/minecraft";
|
2024-08-24 22:16:51 -04:00
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
2024-09-10 14:45:28 -04:00
|
|
|
"/var/lib/private/photoprism/originals" = {
|
|
|
|
device = "/export/JimboNFS/Photos/Galleries";
|
|
|
|
fsType = "none";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
2024-09-10 15:54:45 -04:00
|
|
|
|
2024-08-24 22:16:51 -04:00
|
|
|
swapDevices = [
|
2024-10-22 07:51:39 -04:00
|
|
|
{ device = "/dev/disk/by-uuid/57178cfc-3e71-4d35-8c7f-e355f9dc84df"; }
|
2024-08-24 22:16:51 -04:00
|
|
|
];
|
|
|
|
|
2024-10-09 03:36:08 -04:00
|
|
|
networking.useDHCP = lib.mkDefault true;
|
2024-09-22 14:46:51 -04:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-10-22 07:51:39 -04:00
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2024-08-24 22:16:51 -04:00
|
|
|
}
|