mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 17:29:30 +08:00
15 lines
468 B
Nix
15 lines
468 B
Nix
inputs:
|
|
{
|
|
options.nixos.hardware.asus = let inherit (inputs.lib) mkOption types; in mkOption
|
|
{ type = types.nullOr (types.submodule {}); default = null; };
|
|
config = let inherit (inputs.config.nixos.hardware) asus; in inputs.lib.mkIf (asus != null)
|
|
{
|
|
services =
|
|
{
|
|
asusd = { enable = true; enableUserService = true; asusdConfig.source = ./asusd.ron; };
|
|
supergfxd.enable = false;
|
|
};
|
|
programs.rog-control-center.enable = true;
|
|
};
|
|
}
|