desko: add tailscale config; move slack/zoom behind a "work" role
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
sane.roles.build-machine.enable = true;
|
sane.roles.build-machine.enable = true;
|
||||||
sane.roles.client = true;
|
sane.roles.client = true;
|
||||||
sane.roles.pc = true;
|
sane.roles.pc = true;
|
||||||
|
sane.roles.work = true;
|
||||||
sane.services.ollama.enable = true;
|
sane.services.ollama.enable = true;
|
||||||
sane.services.wg-home.enable = true;
|
sane.services.wg-home.enable = true;
|
||||||
sane.services.wg-home.ip = config.sane.hosts.by-name."desko".wg-home.ip;
|
sane.services.wg-home.ip = config.sane.hosts.by-name."desko".wg-home.ip;
|
||||||
|
@@ -430,13 +430,11 @@ in
|
|||||||
# "slic3r"
|
# "slic3r"
|
||||||
"soundconverter"
|
"soundconverter"
|
||||||
# "spotify" # x86-only
|
# "spotify" # x86-only
|
||||||
"slack" # x86-only
|
|
||||||
"tor-browser" # x86-only
|
"tor-browser" # x86-only
|
||||||
# "vlc"
|
# "vlc"
|
||||||
"wireshark" # could maybe ship the cli as sysadmin pkg
|
"wireshark" # could maybe ship the cli as sysadmin pkg
|
||||||
# "xterm" # requires Xwayland
|
# "xterm" # requires Xwayland
|
||||||
# "zecwallet-lite" # x86-only
|
# "zecwallet-lite" # x86-only
|
||||||
"zoom-us"
|
|
||||||
# "zulip"
|
# "zulip"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@@ -5,5 +5,6 @@
|
|||||||
./client
|
./client
|
||||||
./handheld.nix
|
./handheld.nix
|
||||||
./pc.nix
|
./pc.nix
|
||||||
|
./work.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
27
hosts/modules/roles/work.nix
Normal file
27
hosts/modules/roles/work.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user