17 lines
553 B
Nix
17 lines
553 B
Nix
{ config, lib, ... }: {
|
|
options.snowflake.services.asus.enable =
|
|
lib.mkEnableOption "enable asus specific modules";
|
|
|
|
config = lib.mkIf config.snowflake.services.asus.enable {
|
|
# specific to Asus laptop
|
|
# already included in flake.nix from https://github.com/NixOS/nixos-hardware/blob/master/asus/zephyrus/ga402x/shared.nix still overwiting it
|
|
# source: https://asus-linux.org/guides/nixos/
|
|
services = {
|
|
supergfxd.enable = true;
|
|
asusd = {
|
|
enable = true;
|
|
enableUserService = true;
|
|
};
|
|
};
|
|
};
|
|
}
|