about summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorAndrew Marshall <andrew@johnandrewmarshall.com>2024-02-27 18:32:33 -0500
committerAndrew Marshall <andrew@johnandrewmarshall.com>2024-02-27 19:30:19 -0500
commit1f32eb724ddc9e27573266756c390a6bdcca4439 (patch)
treefdfc17f7f994f482620bbb268ee5983cdb99c7cc /nixos/modules/tasks
parent2e36c49949f90f14a2ffcc002c8f411b725022d2 (diff)
downloadnixlib-1f32eb724ddc9e27573266756c390a6bdcca4439.tar
nixlib-1f32eb724ddc9e27573266756c390a6bdcca4439.tar.gz
nixlib-1f32eb724ddc9e27573266756c390a6bdcca4439.tar.bz2
nixlib-1f32eb724ddc9e27573266756c390a6bdcca4439.tar.lz
nixlib-1f32eb724ddc9e27573266756c390a6bdcca4439.tar.xz
nixlib-1f32eb724ddc9e27573266756c390a6bdcca4439.tar.zst
nixlib-1f32eb724ddc9e27573266756c390a6bdcca4439.zip
nixos/zfs: Remove enableUnstable in favor of setting package
This just adds complexity and confusion. Once-upon-a-time, there was no
`package` and only `enableUnstable`, but now it is just confusing to
have both, as it would be possible to do e.g. `package = pkgs.zfs` and
`enableUnstable = true`, but then `enableUnstable` does nothing.
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/filesystems/zfs.nix18
1 files changed, 3 insertions, 15 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix
index b5caa4d29fa9..7bb2d973647d 100644
--- a/nixos/modules/tasks/filesystems/zfs.nix
+++ b/nixos/modules/tasks/filesystems/zfs.nix
@@ -211,6 +211,7 @@ in
 
   imports = [
     (mkRemovedOptionModule [ "boot" "zfs" "enableLegacyCrypto" ] "The corresponding package was removed from nixpkgs.")
+    (mkRemovedOptionModule [ "boot" "zfs" "enableUnstable" ] "Instead set `boot.zfs.package = pkgs.zfs_unstable;`")
   ];
 
   ###### interface
@@ -219,8 +220,8 @@ in
     boot.zfs = {
       package = mkOption {
         type = types.package;
-        default = if cfgZfs.enableUnstable then pkgs.zfs_unstable else pkgs.zfs;
-        defaultText = literalExpression "if enableUnstable is enabled then pkgs.zfs_unstable else pkgs.zfs";
+        default = pkgs.zfs;
+        defaultText = literalExpression "pkgs.zfs";
         description = lib.mdDoc "Configured ZFS userland tools package, use `pkgs.zfs_unstable` if you want to track the latest staging ZFS branch.";
       };
 
@@ -239,19 +240,6 @@ in
         description = lib.mdDoc "True if ZFS filesystem support is enabled";
       };
 
-      enableUnstable = mkOption {
-        type = types.bool;
-        default = false;
-        description = lib.mdDoc ''
-          Use the unstable zfs package. This might be an option, if the latest
-          kernel is not yet supported by a published release of ZFS. Enabling
-          this option will install a development version of ZFS on Linux. The
-          version will have already passed an extensive test suite, but it is
-          more likely to hit an undiscovered bug compared to running a released
-          version of ZFS on Linux.
-          '';
-      };
-
       allowHibernation = mkOption {
         type = types.bool;
         default = false;