From 6257445b33e2ed1d45644fa4657d21b7c674b467 Mon Sep 17 00:00:00 2001 From: shelken Date: Sat, 28 Sep 2024 02:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20for=20mio,yuuko?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/mio/default.nix | 1 + hosts/yuuko/default.nix | 1 + modules/darwin/apps/tools/others.nix | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 modules/darwin/apps/tools/others.nix diff --git a/hosts/mio/default.nix b/hosts/mio/default.nix index a7e52d8..14895b7 100644 --- a/hosts/mio/default.nix +++ b/hosts/mio/default.nix @@ -20,6 +20,7 @@ in { tools.music.enable = true; tools.image.enable = true; + tools.others.enable = true; social.personal.enable = true; }; diff --git a/hosts/yuuko/default.nix b/hosts/yuuko/default.nix index 09cd29e..b912fc4 100644 --- a/hosts/yuuko/default.nix +++ b/hosts/yuuko/default.nix @@ -20,6 +20,7 @@ in { tools.music.enable = true; tools.image.enable = true; + tools.others.enable = true; social.personal.enable = true; }; diff --git a/modules/darwin/apps/tools/others.nix b/modules/darwin/apps/tools/others.nix new file mode 100644 index 0000000..71d39d0 --- /dev/null +++ b/modules/darwin/apps/tools/others.nix @@ -0,0 +1,25 @@ +{ + lib, + mylib, + config, + ... +}: let + inherit (lib) mkIf; + inherit (mylib) mkBoolOpt; + cfg = config.shelken.tools.others; +in { + options.shelken.tools.others = { + enable = mkBoolOpt false "Whether or not to enable."; + }; + + config = mkIf cfg.enable { + homebrew = { + casks = [ + "altserver" + + "bbackupp" + "wezterm" + ]; + }; + }; +}