nixos-config/nixosModules/services/tailscale.nix
2024-04-11 01:21:49 -04:00

13 lines
416 B
Nix

{ pkgs, config, lib, ... }: {
options.speccon18.tailscale.enable = lib.mkEnableOption "enables the tailscale service and sets the package to use";
config = lib.mkIf config.speccon18.tailscale.enable {
# make the tailscale command usable to users
environment.systemPackages = with pkgs;[
pkgs.tailscale
];
# enable the tailscale service
services.tailscale.enable = true;
};
}