make tailscale module in desktop

This commit is contained in:
Sakooooo 2024-11-07 20:32:11 +04:00
parent 7f1249bc93
commit 36c5e38434
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -0,0 +1,9 @@
{ outputs, options, config, lib, pkgs, ... }:
let cfg = config.modules.desktop.wireguard;
in {
options.modules.desktop.wireguard = { enable = lib.mkEnableOption false; };
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [ tailscale ];
};
}