nixos/modules/system/hardware/gamingKernel/default.nix

16 lines
338 B
Nix
Raw Permalink Normal View History

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.hardware.gamingKernel;
in
{
options.modules.system.hardware.gamingKernel = {
enable = mkEnableOption ''
Enable gaming kernel with my custom configurations
'';
};
config = mkIf cfg.enable {
boot.kernelPackages = pkgs.linuxPackages_zen;
};
}