add asus module for enable asus support software
This commit is contained in:
parent
015cdeb931
commit
3cebfb6a4c
6 changed files with 45 additions and 1 deletions
23
nixos/modules/hardware.nix
Normal file
23
nixos/modules/hardware.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.youthlic.hardware;
|
||||
in {
|
||||
options = {
|
||||
youthlic.hardware = {
|
||||
asus = {
|
||||
enable = lib.mkEnableOption "asus";
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf cfg.asus.enable {
|
||||
youthlic.programs = {
|
||||
asusd.enable = true;
|
||||
supergfxd.enable = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue