mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
autoprovision tailscale
This commit is contained in:
parent
d100182228
commit
5213ecc447
2 changed files with 13 additions and 1 deletions
|
|
@ -1,6 +1,17 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
||||
in {
|
||||
sops.secrets."tailscale-key" = {
|
||||
sopsFile = "${sopsFolder}/shared.yaml";
|
||||
};
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.tailscale;
|
||||
authKeyFile = config.sops.secrets."tailscale-key".path;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue