From 902235cd58fed4e290cb17c4c5f1166926bc2aff Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 8 Nov 2019 14:13:50 +0100 Subject: [PATCH] Change zfs mount property to legacy --- hardware-configuration.nix | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 hardware-configuration.nix diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..a4710b4 --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,59 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ]; + + boot.initrd.availableKernelModules = [ "usb_storage" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; + + fileSystems."/vault" = + { device = "vault"; + fsType = "zfs"; + }; + + fileSystems."/vault/backups" = + { device = "vault/backups"; + fsType = "zfs"; + }; + + fileSystems."/vault/backups/monolith" = + { device = "vault/backups/monolith"; + fsType = "zfs"; + }; + + fileSystems."/vault/backups/zion" = + { device = "vault/backups/zion"; + fsType = "zfs"; + }; + + fileSystems."/vault/git" = + { device = "vault/git"; + fsType = "zfs"; + }; + + fileSystems."/vault/nextcloud" = + { device = "vault/nextcloud"; + fsType = "zfs"; + }; + + fileSystems."/vault/syncthing" = + { device = "vault/syncthing"; + fsType = "zfs"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 4; +}