feat(zfs): declare ZFS module

This commit is contained in:
hektor committed 2026-10-24 13:09:14 +02:00
1 parent e12e2b17ae
commit fc373a60ef
4 files changed
+17 -1

No files matched your search

-1
View File
@@ -12,7 +12,6 @@
config = {
system.stateVersion = lib.mkDefault "25.05";
boot.zfs.forceImportRoot = lib.mkDefault false;
environment.defaultPackages = lib.mkForce [ ];
environment.pathsToLink = [
+15
View File
@@ -0,0 +1,15 @@
{ lib, config, ... }:
{
options.zfs.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
config = lib.mkIf config.zfs.enable {
boot = {
kernelParams = [ "zfs.zfs_arc_max=12884901888" ];
zfs.forceImportRoot = lib.mkDefault false;
};
};
}