File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
options = {
8
8
boot . zfs = {
9
9
recommendedDefaults = libS . mkOpinionatedOption "enable recommended ZFS settings" ;
10
- latestCompatibleKernel = lib . mkEnableOption "use the latest ZFS compatible kernel" ;
11
10
} ;
12
11
} ;
13
12
14
- config = lib . mkIf cfg . enabled {
15
- # TODO: add srvos mixin?
16
- # https://github.com/nix-community/srvos/blob/main/nixos/mixins/latest-zfs-kernel.nix
17
- boot . kernelPackages = lib . mkIf cfg . latestCompatibleKernel ( lib . mkDefault cfg . package . latestCompatibleLinuxPackages ) ;
13
+ imports = [
14
+ ( lib . mkRemovedOptionModule [ "boot" "zfs" "latestCompatibleKernel" ] ''
15
+ latestCompatibleKernel has been removed because zfs.passthru.latestCompatibleLinuxPackages has been effectively removed.
16
+ Consider using <https://github.com/nix-community/srvos/blob/main/nixos/mixins/latest-zfs-kernel.nix> instead.
17
+ '' )
18
+ ] ;
18
19
20
+ config = lib . mkIf cfg . enabled {
19
21
services . zfs = lib . mkIf cfg . recommendedDefaults {
20
22
autoScrub . enable = true ;
21
23
trim . enable = true ;
You can’t perform that action at this time.
0 commit comments