1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/servnerr-3: import secondary zpool on boot

This commit is contained in:
Matt Layher 2022-02-27 19:59:29 -05:00
parent a63ddcc140
commit c179c2aa1d

View file

@ -128,10 +128,7 @@ let
];
in {
# ZFS filesystem mounts.
#
# The secondary backup pool is not mounted because we can zfs send without
# doing so.
# primary zpool mounts.
fileSystems = lib.genAttrs [
"/primary"
"/primary/archive"
@ -145,6 +142,9 @@ in {
fsType = "zfs";
});
# Don't mount secondary, just import it on boot.
boot.zfs.extraPools = ["secondary"];
nixpkgs = {
# Only allow certain unfree packages.
config.allowUnfreePredicate = pkg: