refactor some things, might have broken everything
This commit is contained in:
13
osConfigs/modules/zfs.nix
Normal file
13
osConfigs/modules/zfs.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
options.mods.zfs.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "does this system support zfs filesystems";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.zfs.enable {
|
||||
boot.kernelPackages = pkgs.linuxPackages;
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user