diff --git a/nixos/configurations/Tytonidae/default.nix b/nixos/configurations/Tytonidae/default.nix index 168f01f..40228fe 100644 --- a/nixos/configurations/Tytonidae/default.nix +++ b/nixos/configurations/Tytonidae/default.nix @@ -29,6 +29,7 @@ dae.enable = true; openssh.enable = true; steam.enable = true; + tailscale.enable = true; }; gui.enabled = "cosmic"; }; diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix index effb340..b587be2 100644 --- a/nixos/modules/default.nix +++ b/nixos/modules/default.nix @@ -23,6 +23,7 @@ ./i18n.nix ./gui ./steam.nix + ./tailscale.nix ]; config = { diff --git a/nixos/modules/tailscale.nix b/nixos/modules/tailscale.nix new file mode 100644 index 0000000..7023948 --- /dev/null +++ b/nixos/modules/tailscale.nix @@ -0,0 +1,16 @@ +{ config, lib, ... }: +let + cfg = config.youthlic.programs.tailscale; +in +{ + options = { + youthlic.programs.tailscale = { + enable = lib.mkEnableOption "tailscale"; + }; + }; + config = lib.mkIf cfg.enable { + services.tailscale = { + enable = true; + }; + }; +}