mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
17 lines
345 B
Nix
17 lines
345 B
Nix
{
|
|
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;
|
|
};
|
|
}
|