add headscale

This commit is contained in:
2026-07-29 18:21:26 -04:00
parent 92688f9585
commit 4d72aa979a
11 changed files with 70 additions and 53 deletions
+1 -14
View File
@@ -1,16 +1,6 @@
{ config, lib, pkgs, ... }:
{
sops = {
defaultSopsFile = ./secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/var/lib/sops-nix/key.txt";
secrets.gitea_database_password = {
owner = "gitea";
};
};
services.postgresql = {
enable = true;
ensureDatabases = [ "gitea" ];
@@ -25,10 +15,9 @@
appName = "Lilac's Code";
database = {
type = "postgres";
host = "/run/postgres";
host = "/run/postgresql";
name = "gitea";
user = "gitea";
passwordFile = config.sops.secrets.gitea_database_password.path;
};
};
@@ -38,6 +27,4 @@
reverse_proxy localhost:3000
'';
};
networking.firewall.allowedTCPPorts = [ 3000 ];
}