mirror of
https://github.com/nmasur/dotfiles
synced 2026-10-29 17:45:02 +00:00
add zfs module with options
This commit is contained in:
1 parent
30fe7c2d18
commit
d56a48cf65
3 files changed
+19
-3
No files matched your search
@@ -10,6 +10,7 @@
|
||||
./server.nix
|
||||
./sleep.nix
|
||||
./wifi.nix
|
||||
./zfs.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
options = { zfs.enable = lib.mkEnableOption "ZFS file system."; };
|
||||
|
||||
config =
|
||||
lib.mkIf (pkgs.stdenv.isLinux && config.server && config.zfs.enable) {
|
||||
|
||||
# Only use compatible Linux kernel, since ZFS can be behind
|
||||
boot.kernelPackages =
|
||||
config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user