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
|
|
@ -27,6 +27,7 @@
|
|||
unixName = "david";
|
||||
hostName = "Tytonidae";
|
||||
};
|
||||
hardware.asus.enable = true;
|
||||
i18n.enable = true;
|
||||
programs = {
|
||||
guix.enable = true;
|
||||
|
|
@ -42,7 +43,6 @@
|
|||
transmission.enable = true;
|
||||
nix-ld.enable = true;
|
||||
juicity.client.enable = true;
|
||||
asusd.enable = true;
|
||||
owncast.enable = true;
|
||||
minio.enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
./i18n.nix
|
||||
./gui
|
||||
./programs
|
||||
./hardware.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
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;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
@ -13,6 +13,7 @@ in {
|
|||
config = lib.mkIf cfg.enable {
|
||||
services.asusd = {
|
||||
enable = true;
|
||||
enableUserService = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,5 +26,6 @@
|
|||
./asusd.nix
|
||||
./owncast.nix
|
||||
./minio.nix
|
||||
./supergfxd.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
18
nixos/modules/programs/supergfxd.nix
Normal file
18
nixos/modules/programs/supergfxd.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.youthlic.programs.supergfxd;
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.supergfxd = {
|
||||
enable = lib.mkEnableOption "supergfxd";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.supergfxd = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue