Skip to content

Commit

Permalink
✨ for mio,yuuko
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Sep 27, 2024
1 parent 473e724 commit 90fac00
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 8 deletions.
6 changes: 6 additions & 0 deletions hosts/mio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ in {
tools.enable = true;
desktop.enable = true;
homelab.enable = true;
work.enable = true;
};

tools.music.enable = true;
tools.image.enable = true;

social.personal.enable = true;
};
}
6 changes: 6 additions & 0 deletions hosts/yuuko/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ in {
tools.enable = true;
desktop.enable = true;
homelab.enable = true;
work.enable = true;
};

tools.music.enable = true;
tools.image.enable = true;

social.personal.enable = true;
};
}
8 changes: 0 additions & 8 deletions modules/darwin/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -147,28 +147,22 @@ in {
"squirrel" # input method for Chinese, rime-squirrel

# IM & audio & remote desktop & meeting
# "telegram"
# "feishu" # for work
# "discord"
# "rustdesk"

# Misc
# "iina" # video player
"raycast" # macOS 12+ (HotKey: alt/option + space)search, calculate and run scripts(with many plugins)
"stats" # beautiful system status monitor in menu bar
"appcleaner" # app uninstall
# "applite" # homebrew ui; need macOS 13+
# "hiddenbar" # menubar plugin
# "picgo" # picbed
"the-unarchiver" # zip,unzip
# "imageoptim" # image compress
# "xld" # 处理cd音频文件,flac等无损音频转化
# "localsend"
# "adrive" # 阿里云盘
# "hackintool" # hackintosh
# "shortcutdetective" # 检查快捷键
# "barrier" # 跨屏键鼠
# "musicbrainz-picard" # 音乐信息刮削
# "cleanmymac" # 清理

# read pdf,...
Expand All @@ -194,13 +188,11 @@ in {

# remote-desktop
# "vnc-viewer"
# "microsoft-remote-desktop"

# Development
# "iterm2"
"kitty"
# "wezterm"
# "he3"
#"navicat-premium" mysql...
];
};
Expand Down
22 changes: 22 additions & 0 deletions modules/darwin/apps/dev/misc.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
lib,
mylib,
config,
...
}: let
inherit (lib) mkIf;
inherit (mylib) mkBoolOpt;
cfg = config.shelken.dev.misc;
in {
options.shelken.dev.misc = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
homebrew = {
casks = [
"he3" # 开发工具箱
];
};
};
}
4 changes: 4 additions & 0 deletions modules/darwin/apps/social/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{mylib, ...}: {
imports =
mylib.scanPaths ./.;
}
22 changes: 22 additions & 0 deletions modules/darwin/apps/social/feishu.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
lib,
mylib,
config,
...
}: let
inherit (lib) mkIf;
inherit (mylib) mkBoolOpt;
cfg = config.shelken.social.feishu;
in {
options.shelken.social.feishu = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
homebrew = {
casks = [
"feishu" # for work
];
};
};
}
23 changes: 23 additions & 0 deletions modules/darwin/apps/social/personal.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.social.personal;
in {
options.shelken.social.personal = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
homebrew = {
casks = [
"telegram"
# "discord"
];
};
};
}
22 changes: 22 additions & 0 deletions modules/darwin/apps/tools/image.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
lib,
mylib,
config,
...
}: let
inherit (lib) mkIf;
inherit (mylib) mkBoolOpt;
cfg = config.shelken.tools.image;
in {
options.shelken.tools.image = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
homebrew = {
casks = [
"imageoptim" # image compress
];
};
};
}
23 changes: 23 additions & 0 deletions modules/darwin/apps/tools/music.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.tools.music;
in {
options.shelken.tools.music = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
homebrew = {
casks = [
"xld" # 处理cd音频文件,flac等无损音频转化
"musicbrainz-picard" # 音乐信息刮削
];
};
};
}
2 changes: 2 additions & 0 deletions modules/darwin/suites/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ in {
casks = [
# "google-chrome"
"arc" # macOS 12+, browser
"iina"
"microsoft-remote-desktop"
];
masApps = {
Wechat = 836500024;
Expand Down
18 changes: 18 additions & 0 deletions modules/darwin/suites/work.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
lib,
mylib,
config,
...
}: let
inherit (lib) mkIf;
inherit (mylib) mkBoolOpt;
cfg = config.shelken.suites.work;
in {
options.shelken.suites.work = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
shelken.social.feishu.enable = true;
};
}

0 comments on commit 90fac00

Please sign in to comment.