feat: add new host and start modularizing system configuration
This commit is contained in:
parent
ebe58addaa
commit
4a8c953223
22 changed files with 1050 additions and 288 deletions
22
hosts/lithium/services/tailscale.nix
Normal file
22
hosts/lithium/services/tailscale.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
#let
|
||||
#hostName = config.networking.hostName;
|
||||
#tailnetName = "tail79151.ts.net";
|
||||
#svcDomain = "${hostName}.${tailnetName}";
|
||||
#in
|
||||
{
|
||||
# NOTE: This does require a manual step of creating a tailscale account if
|
||||
# you don't already have one, and generating an Auth Key:
|
||||
# https://login.tailscale.com/admin/machines/new-linux
|
||||
# After enabling this and generating an install script copy the authkey and
|
||||
# run: `sudo tailscale up --auth-key=KEY`
|
||||
|
||||
# NOTE: Use Caddy to create and manage SSL Certs for Tailscale
|
||||
#services.caddy.virtualHosts."${svcDomain}".extraConfig = ''
|
||||
#reverse_proxy :<port>
|
||||
#'';
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
#permitCertUid = "caddy"; # Allow caddy to edit certs
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue