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
@@ -91,6 +91,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
interfaces.eno1 = { inherit (wolInterfaces.eno1) macAddress; };
|
interfaces.eno1 = { inherit (wolInterfaces.eno1) macAddress; };
|
||||||
};
|
};
|
||||||
|
zfs.enable = true;
|
||||||
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.data = {
|
disk.data = {
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
taskwarrior.enable = true;
|
taskwarrior.enable = true;
|
||||||
|
zfs.enable = true;
|
||||||
|
|
||||||
secrets.nixSigningKey.enable = true;
|
secrets.nixSigningKey.enable = true;
|
||||||
restic-backup.enable = true;
|
restic-backup.enable = true;
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
system.stateVersion = lib.mkDefault "25.05";
|
system.stateVersion = lib.mkDefault "25.05";
|
||||||
boot.zfs.forceImportRoot = lib.mkDefault false;
|
|
||||||
|
|
||||||
environment.defaultPackages = lib.mkForce [ ];
|
environment.defaultPackages = lib.mkForce [ ];
|
||||||
environment.pathsToLink = [
|
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