mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 08:05:38 +00:00
15 lines
356 B
Nix
15 lines
356 B
Nix
|
{ 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;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|