migrate services from nomad to systemd

Signed-off-by: natto1784 <natto@weirdnatto.in>
This commit is contained in:
2023-07-26 22:42:26 +05:30
parent ff831dc3e0
commit 1fc6e8cd96
7 changed files with 319 additions and 49 deletions

View File

@@ -2,7 +2,9 @@
{
imports = [
# ./hashicorp.nix
# ./hashicorp.nix
./filehost.nix
./gitea.nix
];
# Add secrets to nomad, consul and vault
@@ -12,12 +14,22 @@
# default-cgroupns-mode = "host";
};
};
systemd.tmpfiles.rules = [ "d /run/vault - vault vault 1h" ];
services = {
openssh = {
enable = true;
permitRootLogin = "yes";
ports = [22 22001];
};
postgresql = {
enable = true;
authentication = ''
local gitea all ident map=gitea-map
'';
identMap =
''
gitea-map gitea gitea
'';
};
};
}