nixos/modules/desktop/tailscale/default.nix

10 lines
272 B
Nix
Raw Normal View History

2024-11-07 20:32:11 +04:00
{ 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 ];
};
}