diff --git a/hosts/iso/default.nix b/hosts/iso/default.nix index 0933dcc..f47e339 100644 --- a/hosts/iso/default.nix +++ b/hosts/iso/default.nix @@ -20,6 +20,7 @@ kernelParams = [ "console=ttyS0,115200" ]; kernelPackages = pkgs.linuxPackages_latest; supportedFilesystems = lib.mkForce [ "btrfs" "vfat" "zfs"]; + zfs.forceImportRoot = lib.mkDefault false; }; services.openssh = { diff --git a/hosts/physiques/thot/default.nix b/hosts/physiques/thot/default.nix index ba780fa..80d4f99 100644 --- a/hosts/physiques/thot/default.nix +++ b/hosts/physiques/thot/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ @@ -27,7 +27,9 @@ "head" "backups" ]; - forceImportAll = true; + forceImportAll = lib.mkForce true; + # Ajouté suite au passage en 26.05 par souci de cohérence + forceImportRoot = lib.mkForce true; }; }; diff --git a/modules/default.nix b/modules/default.nix index ef7599e..be2ac91 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, ... }: { imports = [ @@ -26,5 +26,6 @@ }; # Recommandé depuis le passage à 26.05 - boot.zfs.forceImportRoot = false; + boot.zfs.forceImportAll = lib.mkDefault false; + boot.zfs.forceImportRoot = lib.mkDefault false; }