Skip to content

Commit

Permalink
✨ add game suite
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Nov 17, 2024
1 parent d19295c commit 2f5c142
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/sakamoto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ in {
desktop.enable = true;
homelab.enable = true;
work.enable = true;
game.enable = true;
};

tools.main.enable = true;
Expand Down
4 changes: 4 additions & 0 deletions modules/darwin/apps/game/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{mylib, ...}: {
imports =
mylib.scanPaths ./.;
}
23 changes: 23 additions & 0 deletions modules/darwin/apps/game/winx.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
lib,
mylib,
config,
...
}: let
inherit (lib) mkIf;
inherit (mylib) mkBoolOpt;
cfg = config.shelken.network.homelab;
in {
options.shelken.game.winx = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
# 版本差异的
homebrew = {
casks = [
"mythic"
];
};
};
}
1 change: 1 addition & 0 deletions modules/darwin/suites/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ in {
"iina"
"microsoft-remote-desktop"
"vnc-viewer"
"parsec"
"keycastr" # an open source keystroke visualizer.
];
masApps = {
Expand Down
24 changes: 24 additions & 0 deletions modules/darwin/suites/game.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
lib,
mylib,
config,
...
}: let
inherit (lib) mkIf;
inherit (mylib) mkBoolOpt;
cfg = config.shelken.suites.game;
in {
options.shelken.suites.game = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
shelken.game.winx.enable = true;
# homebrew = {
# casks = [
# ];
# masApps = {
# };
# };
};
}

0 comments on commit 2f5c142

Please sign in to comment.