DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: b59eb2682c9b63c2452ad88969a7013dc929a1ab nix-arta/modules/nixos/tailscale.nix -rw-r--r-- 408 bytes
b59eb268Jonni Liljamo flake: update hyprland and hy3 to 0.53.* 15 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  flake.modules.nixos.tailscale = {
    config,
    lib,
    ...
  }: let
    cfg = config.arta.tailscale;
  in {
    options.arta.tailscale = {
      enableSSH = lib.mkOption {
        type = lib.types.bool;
        default = true;
      };
    };

    config = {
      services.tailscale = {
        enable = true;
        extraSetFlags = lib.lists.optional cfg.enableSSH "--ssh";
      };
    };
  };
}