Skip to content

Commit

Permalink
✨ rclone config
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Oct 22, 2024
1 parent 9616311 commit 42d7e56
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/yuuko/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ in {
};

tools.main.enable = true;
tools.rclone.enable = true;
# tools.music.enable = true; # 音乐刮削相关
# tools.image.enable = true; # 图片处理
# tools.virts.enable = true; # 虚拟机
Expand Down
22 changes: 22 additions & 0 deletions modules/darwin/apps/tools/rclone.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.rclone;
in {
options.shelken.tools.rclone = {
enable = mkBoolOpt false "Whether or not to enable.";
};

config = mkIf cfg.enable {
homebrew = {
casks = [
"macfuse" # for rclone mount cmd
];
};
};
}
1 change: 1 addition & 0 deletions modules/darwin/suites/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ in {
music.enable = true; # 音乐刮削相关
image.enable = true; # 图片处理
virts.enable = true; # 虚拟机
rclone.enable = true; # rclone
others.enable = true; # 其他:altserver,备份
};
};
Expand Down

0 comments on commit 42d7e56

Please sign in to comment.