Init
This commit is contained in:
commit
cdec5a64aa
44 changed files with 9802 additions and 0 deletions
18
modules/tailscale.nix
Normal file
18
modules/tailscale.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ nixhelm, system, config, lib, ... }: {
|
||||
options.tailscale.enable = lib.mkEnableOption "tailscale";
|
||||
|
||||
config = lib.mkIf config.tailscale.enable {
|
||||
kubernetes = {
|
||||
helm.releases.tailscale = {
|
||||
chart = nixhelm.chartsDerivations.${system}.tailscale.tailscale-operator;
|
||||
includeCRDs = true;
|
||||
namespace = "tailscale";
|
||||
};
|
||||
|
||||
resources.secrets.operator-oauth.stringData = {
|
||||
client_id = "ref+sops://secrets.yml#/tailscale/clientID";
|
||||
client_secret = "ref+sops://secrets.yml#/tailscale/clientSecret";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue