Add backups vdev
This commit is contained in:
parent
54dead3028
commit
014d0eaee8
|
@ -4,62 +4,70 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "system/stateful/root";
|
||||
fileSystems."/" = {
|
||||
device = "system/stateful/root";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "system/ephemeral/nix";
|
||||
fileSystems."/nix" = {
|
||||
device = "system/ephemeral/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "system/stateful/home";
|
||||
fileSystems."/home" = {
|
||||
device = "system/stateful/home";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/tmp" =
|
||||
{ device = "system/ephemeral/tmp";
|
||||
fileSystems."/tmp" = {
|
||||
device = "system/ephemeral/tmp";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/B314-22E9";
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/B314-22E9";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/vault" =
|
||||
{ device = "vault";
|
||||
fileSystems."/vault" = {
|
||||
device = "vault";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/vault/samba" =
|
||||
{ device = "vault/samba";
|
||||
fileSystems."/vault/samba" = {
|
||||
device = "vault/samba";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/vault/nextcloud" =
|
||||
{ device = "vault/nextcloud";
|
||||
fileSystems."/vault/nextcloud" = {
|
||||
device = "vault/nextcloud";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/vault/sica" =
|
||||
{ device = "vault/sica";
|
||||
fileSystems."/vault/sica" = {
|
||||
device = "vault/sica";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/vault/backups" = {
|
||||
device = "vault/backups";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/vault/backups/databases" = {
|
||||
device = "vault/backups/databases";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/8262a243-b6aa-49e8-bf72-d2b85864d1c0"; }
|
||||
];
|
||||
[{ device = "/dev/disk/by-uuid/8262a243-b6aa-49e8-bf72-d2b85864d1c0"; }];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue