nixos/modules/system/gamingKernel/default.nix

16 lines
320 B
Nix
Raw Normal View History

2024-05-25 01:32:48 +02:00
{ config, pkgs, lib, ... }:
with lib;
let
2024-05-25 23:51:37 +02:00
cfg = config.modules.system.gamingKernel;
2024-05-25 01:32:48 +02:00
in
{
2024-05-25 23:51:37 +02:00
options.modules.system.gamingKernel = {
2024-05-25 01:32:48 +02:00
enable = mkEnableOption ''
Enable gaming kernel with my custom configurations
'';
};
config = mkIf cfg.enable {
2024-05-25 23:51:37 +02:00
boot.kernelPackages = pkgs.linuxPackages_zen;
2024-05-25 01:32:48 +02:00
};
}