add everything to motd

This commit is contained in:
2026-06-14 10:58:53 -05:00
parent 2c7e21f64d
commit 4b537c7fe8
4 changed files with 17 additions and 3 deletions
@@ -4,15 +4,20 @@
lib,
...
}: let
service = "tailscale";
cfg = config.homelab.tailscale;
sec = config.sops.secrets;
in {
options.homelab.tailscale = {
enable = lib.mkEnableOption "enables tailscale";
motd = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = service;
};
};
config = lib.mkIf cfg.enable {
services.tailscale = {
services.${service} = {
enable = true;
openFirewall = true;
useRoutingFeatures = "both";