feat: enable tailscale
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
887f26dbbd
commit
77d8363b68
3 changed files with 77 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
|
|
@ -25,6 +30,21 @@
|
|||
];
|
||||
};
|
||||
|
||||
sops.secrets.tailscale-authkey = {
|
||||
owner = "root";
|
||||
group = "root";
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
extraUpFlags = [
|
||||
"--login-server=https://headscale.escapeangle.com"
|
||||
];
|
||||
authKeyFile = config.sops.secrets.tailscale-authkey.path;
|
||||
};
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
trusted-users = [ "lander" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue