feat(zfs): declare ZFS module
This commit is contained in:
1 parent
e12e2b17ae
commit
fc373a60ef
4 files changed
+17
-1
No files matched your search
@@ -12,7 +12,6 @@
|
||||
|
||||
config = {
|
||||
system.stateVersion = lib.mkDefault "25.05";
|
||||
boot.zfs.forceImportRoot = lib.mkDefault false;
|
||||
|
||||
environment.defaultPackages = lib.mkForce [ ];
|
||||
environment.pathsToLink = [
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user