Skip to content

Commit 7173a29

Browse files
committed
Setup golink
1 parent 965c084 commit 7173a29

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

flake.lock

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
url = "github:nix-community/disko";
3030
inputs.nixpkgs.follows = "nixpkgs";
3131
};
32+
golink = {
33+
url = "github:tailscale/golink";
34+
inputs.nixpkgs.follows = "nixpkgs";
35+
inputs.systems.follows = "systems";
36+
};
3237

3338
# macOS
3439
nix-darwin = {
714 Bytes
Binary file not shown.

hosts/spore/services.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
pkgs,
44
...
55
}: {
6+
age.secrets.tailscale-auth-key.file = ./secrets/tailscale-auth-key.age;
7+
services.golink = {
8+
enable = true;
9+
tailscaleAuthKeyFile = config.age.secrets.tailscale-auth-key.path;
10+
};
11+
612
services.openssh.enable = true;
713
services.tailscale.enable = true;
814
}

lib/hosts.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
mac-app-util,
1313
profile,
1414
disko,
15+
golink,
1516
...
1617
}: let
1718
keys = import ./keys.nix;
@@ -62,6 +63,7 @@
6263
{
6364
nixpkgs.overlays = overlays;
6465
}
66+
golink.nixosModules.default
6567
];
6668
};
6769
darwinHost = {

lib/secrets.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ in {
1616
"hosts/spore/secrets/restic-password.age".publicKeys = keys;
1717
"hosts/spore/secrets/session-secret.age".publicKeys = keys;
1818
"hosts/spore/secrets/storage-encryption-key.age".publicKeys = keys;
19+
"hosts/spore/secrets/tailscale-auth-key.age".publicKeys = keys;
1920
"hosts/zeta/secrets/wireless.age".publicKeys = keys;
2021
"hosts/zeta/secrets/dd-agent.age".publicKeys = keys;
2122
"hosts/zeta/secrets/znc-conf.age".publicKeys = keys;

0 commit comments

Comments
 (0)