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"
|
|
|
|
];
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [
|
|
|
|
"xhci_pci"
|
|
|
|
"ehci_pci"
|
|
|
|
"ahci"
|
|
|
|
"nvme"
|
|
|
|
"usbhid"
|
|
|
|
"sd_mod"
|
|
|
|
"sr_mod"
|
|
|
|
];
|
|
|
|
kernelModules = [
|
|
|
|
"kvm-intel"
|
|
|
|
];
|
|
|
|
};
|
2024-10-09 03:36:08 -04:00
|
|
|
swraid = {
|
|
|
|
enable = true;
|
|
|
|
mdadmConf = ''
|
2024-10-15 17:46:44 -04:00
|
|
|
MAILADDR jimbo@jimbosfiles.com
|
2024-10-09 03:36:08 -04:00
|
|
|
'';
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
# Mounting options
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/8f81cab7-9381-4950-b77f-b85c5fdbad16";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/2034-754A";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
"/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" ];
|
|
|
|
};
|
|
|
|
"/var/lib/gitea" = {
|
|
|
|
device = "/export/JimboNFS/System/var/lib/gitea";
|
|
|
|
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 = [
|
|
|
|
{ device = "/dev/disk/by-uuid/ec422cad-bf93-4b15-b989-2c807f1073a4"; }
|
|
|
|
];
|
|
|
|
|
|
|
|
# Hardware settings
|
2024-10-09 03:36:08 -04:00
|
|
|
networking.useDHCP = lib.mkDefault true;
|
2024-09-22 14:46:51 -04:00
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-08-24 22:16:51 -04:00
|
|
|
}
|