From 3a02f04b2deed87940359c907b17d8b60e3af878 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 1 Apr 2018 11:28:01 +0200 Subject: [PATCH] Montage volumes ZFS --- hardware-configuration.nix | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index ee98056..ea5ce24 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -8,7 +8,7 @@ [ ]; - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "nvme" "usbhid" "usb_storage" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "nvme" "usbhid" "sd_mod" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -22,8 +22,33 @@ fsType = "vfat"; }; + fileSystems."/mnt/loutrepool" = + { device = "loutrepool"; + fsType = "zfs"; + }; + + fileSystems."/mnt/medias" = + { device = "loutrepool/medias"; + fsType = "zfs"; + }; + + fileSystems."/mnt/syncthing" = + { device = "loutrepool/syncthing"; + fsType = "zfs"; + }; + + fileSystems."/mnt/containers_volumes" = + { device = "loutrepool/containers_volumes"; + fsType = "zfs"; + }; + + fileSystems."/mnt/steam" = + { device = "loutrepool/steam"; + fsType = "zfs"; + }; + swapDevices = [ ]; nix.maxJobs = lib.mkDefault 4; - powerManagement.cpuFreqGovernor = "ondemand"; + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; }