anime-game-launcher: simplify options
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
59e49e6fc9
commit
bbceefdb0e
1 changed files with 18 additions and 3 deletions
|
@ -6,13 +6,28 @@
|
|||
with lib; let
|
||||
cfg = config.custom.programs.anime-game-launcher;
|
||||
in {
|
||||
options.custom.programs.anime-game-launcher.enable = mkOption {default = false;};
|
||||
options.custom.programs.anime-game-launcher = {
|
||||
enable = mkOption {default = false;};
|
||||
genshin-impact = mkOption {default = false;};
|
||||
honkai-impact = mkOption {default = false;};
|
||||
honkai-star-rail = mkOption {default = false;};
|
||||
universal = mkOption {default = false;};
|
||||
wuthering-waves = mkOption {default = false;};
|
||||
zenless-zone-zero = mkOption {default = false;};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# https://github.com/an-anime-team
|
||||
# https://github.com/ezKEa/aagl-gtk-on-nix
|
||||
#?? If error on first setup, clone components
|
||||
#!! If error on first setup, clone components
|
||||
#?? git clone https://github.com/an-anime-team/components.git
|
||||
programs.honkers-railway-launcher.enable = true;
|
||||
programs = {
|
||||
anime-game-launcher.enable = cfg.genshin-impact;
|
||||
anime-games-launcher.enable = cfg.universal;
|
||||
honkers-railway-launcher.enable = cfg.honkai-star-rail;
|
||||
honkers-launcher.enable = cfg.honkai-impact;
|
||||
sleepy-launcher.enable = cfg.zenless-zone-zero;
|
||||
wavey-launcher.enable = cfg.wuthering-waves;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue