feat: Add and enable clash module instead of dae
This commit is contained in:
parent
5b654f5cf3
commit
5f6a71f47f
2 changed files with 23 additions and 1 deletions
|
|
@ -59,7 +59,8 @@
|
||||||
};
|
};
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
guix.enable = true;
|
guix.enable = true;
|
||||||
dae.enable = true;
|
# dae.enable = true;
|
||||||
|
clash-verge.enable = true;
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
|
|
||||||
21
nixos/modules/programs/clash-verge.nix
Normal file
21
nixos/modules/programs/clash-verge.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.youthlic.programs.clash-verge;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
youthlic.programs.clash-verge = {
|
||||||
|
enable = lib.mkEnableOption "clash-verge";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.clash-verge = {
|
||||||
|
enable = true;
|
||||||
|
autoStart = true;
|
||||||
|
tunMode = true;
|
||||||
|
serviceMode = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue