From abb226bc5adab669ebfbff48f81331fd83e51563 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 18 Nov 2021 20:39:52 +0100 Subject: [PATCH] server1, server2: allow building with zfs support --- nix/nixos-module/server/server1.nix | 2 ++ nix/nixos-module/server/server2.nix | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/nix/nixos-module/server/server1.nix b/nix/nixos-module/server/server1.nix index 6e6a87b..4e30539 100644 --- a/nix/nixos-module/server/server1.nix +++ b/nix/nixos-module/server/server1.nix @@ -14,6 +14,8 @@ boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "hpsa" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; boot.extraModulePackages = [ ]; + nixpkgs.config.allowBroken = true; + boot.zfs.enableUnstable = true; boot.supportedFilesystems = [ "zfs" ]; boot.initrd.supportedFilesystems = [ "zfs" ]; # Required for Broadcom NICs diff --git a/nix/nixos-module/server/server2.nix b/nix/nixos-module/server/server2.nix index 1f3e11f..240ed86 100644 --- a/nix/nixos-module/server/server2.nix +++ b/nix/nixos-module/server/server2.nix @@ -3,6 +3,10 @@ { boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usbhid" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; + nixpkgs.config.allowBroken = true; + boot.zfs.enableUnstable = true; + boot.supportedFilesystems = [ "zfs" ]; + boot.initrd.supportedFilesystems = [ "zfs" ]; boot.extraModulePackages = [ ]; fileSystems."/" = { device = "server2/root";