Compare commits

..

1 Commits

Author SHA1 Message Date
coolneng 136181ec3a
Deploy a mail server 2021-06-25 15:09:27 +02:00
1 changed files with 27 additions and 32 deletions

View File

@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
@ -43,43 +43,23 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/frontend" =
{ device = "vault/frontend";
fsType = "zfs";
};
fileSystems."/vault/VMs" = fileSystems."/vault/VMs" =
{ device = "vault/VMs"; { device = "vault/VMs";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/code" =
{ device = "vault/code";
fsType = "zfs";
};
fileSystems."/vault/backups" = fileSystems."/vault/backups" =
{ device = "vault/backups"; { device = "vault/backups";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/config" =
{ device = "vault/config";
fsType = "zfs";
};
fileSystems."/vault/nextcloud" = fileSystems."/vault/nextcloud" =
{ device = "vault/nextcloud"; { device = "vault/nextcloud";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/samba" = fileSystems."/vault/code" =
{ device = "vault/samba"; { device = "vault/code";
fsType = "zfs";
};
fileSystems."/vault/VMs/legacy" =
{ device = "vault/VMs/legacy";
fsType = "zfs"; fsType = "zfs";
}; };
@ -88,13 +68,8 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/backups/documents" = fileSystems."/vault/samba" =
{ device = "vault/backups/documents"; { device = "vault/samba";
fsType = "zfs";
};
fileSystems."/vault/backups/frontend" =
{ device = "vault/backups/frontend";
fsType = "zfs"; fsType = "zfs";
}; };
@ -103,8 +78,28 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/mail" = fileSystems."/vault/backups/frontend" =
{ device = "vault/mail"; { device = "vault/backups/frontend";
fsType = "zfs";
};
fileSystems."/vault/backups/documents" =
{ device = "vault/backups/documents";
fsType = "zfs";
};
fileSystems."/vault/config" =
{ device = "vault/config";
fsType = "zfs";
};
fileSystems."/vault/VMs/legacy" =
{ device = "vault/VMs/legacy";
fsType = "zfs";
};
fileSystems."/vault/frontend" =
{ device = "vault/frontend";
fsType = "zfs"; fsType = "zfs";
}; };