Add config vdev

This commit is contained in:
coolneng 2021-03-30 11:29:52 +02:00
parent 340f773abb
commit 645f1c3b52
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 61 additions and 58 deletions

View File

@ -4,82 +4,85 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[ (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.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "system/stateful/root"; device = "system/stateful/root";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/nix" = fileSystems."/nix" = {
{ device = "system/ephemeral/nix"; device = "system/ephemeral/nix";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/tmp" = fileSystems."/tmp" = {
{ device = "system/ephemeral/tmp"; device = "system/ephemeral/tmp";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/home" = fileSystems."/home" = {
{ device = "system/stateful/home"; device = "system/stateful/home";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/B314-22E9"; device = "/dev/disk/by-uuid/B314-22E9";
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/vault" = fileSystems."/vault" = {
{ device = "vault"; device = "vault";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/samba" = fileSystems."/vault/samba" = {
{ device = "vault/samba"; device = "vault/samba";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/VMs" = fileSystems."/vault/VMs" = {
{ device = "vault/VMs"; device = "vault/VMs";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/backups" = fileSystems."/vault/backups" = {
{ device = "vault/backups"; device = "vault/backups";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/nextcloud" = fileSystems."/vault/nextcloud" = {
{ device = "vault/nextcloud"; device = "vault/nextcloud";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/backups/databases" = fileSystems."/vault/backups/databases" = {
{ device = "vault/backups/databases"; device = "vault/backups/databases";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/sica" = fileSystems."/vault/sica" = {
{ device = "vault/sica"; device = "vault/sica";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/code" = fileSystems."/vault/code" = {
{ device = "vault/code"; device = "vault/code";
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/vault/config" = {
device = "vault/config";
fsType = "zfs";
};
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/8262a243-b6aa-49e8-bf72-d2b85864d1c0"; } [{ device = "/dev/disk/by-uuid/8262a243-b6aa-49e8-bf72-d2b85864d1c0"; }];
];
} }