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";
|
unixName = "david";
|
||||||
hostName = "Tytonidae";
|
hostName = "Tytonidae";
|
||||||
};
|
};
|
||||||
|
hardware.asus.enable = true;
|
||||||
i18n.enable = true;
|
i18n.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
guix.enable = true;
|
guix.enable = true;
|
||||||
|
|
@ -42,7 +43,6 @@
|
||||||
transmission.enable = true;
|
transmission.enable = true;
|
||||||
nix-ld.enable = true;
|
nix-ld.enable = true;
|
||||||
juicity.client.enable = true;
|
juicity.client.enable = true;
|
||||||
asusd.enable = true;
|
|
||||||
owncast.enable = true;
|
owncast.enable = true;
|
||||||
minio.enable = true;
|
minio.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
./i18n.nix
|
./i18n.nix
|
||||||
./gui
|
./gui
|
||||||
./programs
|
./programs
|
||||||
|
./hardware.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
services.asusd = {
|
services.asusd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableUserService = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,5 +26,6 @@
|
||||||
./asusd.nix
|
./asusd.nix
|
||||||
./owncast.nix
|
./owncast.nix
|
||||||
./minio.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