nixos/modules/hardware/legion.nix

11 lines
428 B
Nix
Raw Normal View History

2024-01-14 14:55:39 +08:00
inputs:
{
2024-03-25 11:40:13 +08:00
options.nixos.hardware.legion = let inherit (inputs.lib) mkOption types; in mkOption
{ type = types.nullOr (types.submodule {}); default = null; };
config = let inherit (inputs.config.nixos.hardware) legion; in inputs.lib.mkIf (legion != null)
2024-01-14 14:55:39 +08:00
{
2024-03-25 11:40:13 +08:00
environment.systemPackages = [ inputs.pkgs.lenovo-legion ];
boot.extraModulePackages = [ inputs.config.boot.kernelPackages.lenovo-legion-module ];
2024-01-14 14:55:39 +08:00
};
}