feat: Enable tailscale on physical servers
fix: Fix Nix flake checks
This commit is contained in:
parent
c22d356191
commit
15e0dce041
5 changed files with 21 additions and 4 deletions
|
@ -6,5 +6,6 @@
|
|||
./data-sharing.nix
|
||||
./monitoring
|
||||
./k3s
|
||||
./tailscale.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ in
|
|||
nfs-utils # Required for Longhorn
|
||||
];
|
||||
|
||||
# TODO!!!!!
|
||||
networking = {
|
||||
nftables.enable = lib.mkForce false;
|
||||
firewall.enable = lib.mkForce false;
|
||||
|
|
14
nixos-modules/tailscale.nix
Normal file
14
nixos-modules/tailscale.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, ... }: {
|
||||
config = {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
authKeyFile = config.sops.secrets."tailscale/authKey".path;
|
||||
|
||||
extraUpFlags = [
|
||||
"--hostname=${config.networking.hostName}"
|
||||
];
|
||||
};
|
||||
|
||||
sops.secrets."tailscale/authKey" = { };
|
||||
};
|
||||
}
|
Reference in a new issue