From 645f1c3b5208e4df82d21c201a57d191000d17a1 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 30 Mar 2021 11:29:52 +0200 Subject: [PATCH] Add config vdev --- modules/hardware-configuration.nix | 119 +++++++++++++++-------------- 1 file changed, 61 insertions(+), 58 deletions(-) diff --git a/modules/hardware-configuration.nix b/modules/hardware-configuration.nix index 6f85821..9e48d16 100644 --- a/modules/hardware-configuration.nix +++ b/modules/hardware-configuration.nix @@ -4,82 +4,85 @@ { 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"; - fsType = "zfs"; - }; + fileSystems."/" = { + device = "system/stateful/root"; + fsType = "zfs"; + }; - fileSystems."/nix" = - { device = "system/ephemeral/nix"; - fsType = "zfs"; - }; + fileSystems."/nix" = { + device = "system/ephemeral/nix"; + fsType = "zfs"; + }; - fileSystems."/tmp" = - { device = "system/ephemeral/tmp"; - fsType = "zfs"; - }; + fileSystems."/tmp" = { + device = "system/ephemeral/tmp"; + fsType = "zfs"; + }; - fileSystems."/home" = - { device = "system/stateful/home"; - fsType = "zfs"; - }; + fileSystems."/home" = { + device = "system/stateful/home"; + fsType = "zfs"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/B314-22E9"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/B314-22E9"; + fsType = "vfat"; + }; - fileSystems."/vault" = - { device = "vault"; - fsType = "zfs"; - }; + fileSystems."/vault" = { + device = "vault"; + fsType = "zfs"; + }; - fileSystems."/vault/samba" = - { device = "vault/samba"; - fsType = "zfs"; - }; + fileSystems."/vault/samba" = { + device = "vault/samba"; + fsType = "zfs"; + }; - fileSystems."/vault/VMs" = - { device = "vault/VMs"; - fsType = "zfs"; - }; + fileSystems."/vault/VMs" = { + device = "vault/VMs"; + fsType = "zfs"; + }; - fileSystems."/vault/backups" = - { device = "vault/backups"; - fsType = "zfs"; - }; + fileSystems."/vault/backups" = { + device = "vault/backups"; + fsType = "zfs"; + }; - fileSystems."/vault/nextcloud" = - { device = "vault/nextcloud"; - fsType = "zfs"; - }; + fileSystems."/vault/nextcloud" = { + device = "vault/nextcloud"; + fsType = "zfs"; + }; - fileSystems."/vault/backups/databases" = - { device = "vault/backups/databases"; - fsType = "zfs"; - }; + fileSystems."/vault/backups/databases" = { + device = "vault/backups/databases"; + fsType = "zfs"; + }; - fileSystems."/vault/sica" = - { device = "vault/sica"; - fsType = "zfs"; - }; + fileSystems."/vault/sica" = { + device = "vault/sica"; + fsType = "zfs"; + }; - fileSystems."/vault/code" = - { device = "vault/code"; - fsType = "zfs"; - }; + fileSystems."/vault/code" = { + device = "vault/code"; + fsType = "zfs"; + }; + + fileSystems."/vault/config" = { + device = "vault/config"; + fsType = "zfs"; + }; swapDevices = - [ { device = "/dev/disk/by-uuid/8262a243-b6aa-49e8-bf72-d2b85864d1c0"; } - ]; + [{ device = "/dev/disk/by-uuid/8262a243-b6aa-49e8-bf72-d2b85864d1c0"; }]; }