desko: add tailscale config; move slack/zoom behind a "work" role

This commit is contained in:
2025-05-30 03:02:46 +00:00
parent 92f68baaf9
commit 83855f7d6a
4 changed files with 29 additions and 2 deletions

View File

@@ -22,6 +22,7 @@
sane.roles.build-machine.enable = true;
sane.roles.client = true;
sane.roles.pc = true;
sane.roles.work = true;
sane.services.ollama.enable = true;
sane.services.wg-home.enable = true;
sane.services.wg-home.ip = config.sane.hosts.by-name."desko".wg-home.ip;

View File

@@ -430,13 +430,11 @@ in
# "slic3r"
"soundconverter"
# "spotify" # x86-only
"slack" # x86-only
"tor-browser" # x86-only
# "vlc"
"wireshark" # could maybe ship the cli as sysadmin pkg
# "xterm" # requires Xwayland
# "zecwallet-lite" # x86-only
"zoom-us"
# "zulip"
];

View File

@@ -5,5 +5,6 @@
./client
./handheld.nix
./pc.nix
./work.nix
];
}

View File

@@ -0,0 +1,27 @@
{ config, lib, ... }:
{
options.sane.roles.work = with lib; mkOption {
type = types.bool;
default = false;
description = ''
programs/services used when working for hire.
'';
};
config = lib.mkIf config.sane.roles.work {
### TAILSCALE
# first run:
# - `tailscale login --hostname $myHostname`
sane.persist.sys.byStore.private = [
{ user = "root"; group = "root"; mode = "0700"; path = "/var/lib/tailscale"; method = "bind"; }
];
services.tailscale.enable = true;
# services.tailscale.useRoutingFeatures = "client";
services.tailscale.extraSetFlags = [ "--accept-routes" ];
sane.programs.guiApps.suggestedPrograms = [
"slack"
"zoom-us"
];
};
}