helm/hosts/helix/default.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2023-05-30 05:22:21 -07:00
{ self, profiles, suites, pkgs, ... }:
2022-09-18 15:13:50 -07:00
{
imports = [
./configuration.nix
2022-12-05 23:09:27 -08:00
../profiles/core
../profiles/server
2023-05-30 05:22:21 -07:00
# ../profiles/metrics
../profiles/gitea
2024-01-05 23:44:08 -08:00
# ../profiles/woodpecker-server
../profiles/rss-bridge
2024-01-05 23:44:08 -08:00
# ../profiles/mount-mossnet
../profiles/freshrss
2023-05-11 06:03:33 -07:00
../profiles/microbin
2022-12-05 23:09:27 -08:00
];
2022-09-18 15:13:50 -07:00
# Capsul specific
users.users.cyberian = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
2022-09-18 15:13:50 -07:00
2023-05-30 05:22:21 -07:00
age.secrets.helix-wg.file = "${self}/secrets/helix-wg.age";
age.secrets.helix-wg.owner = "anish";
mossnet.wg = {
enable = true;
ips = [ "10.0.69.5/24" ];
2023-05-30 05:22:21 -07:00
privateKeyFile = "/run/agenix/helix-wg";
};
2022-12-06 08:01:17 -08:00
2023-05-30 05:22:21 -07:00
services.postgresql.package = pkgs.postgresql_11;
services.postgresqlBackup = {
# TODO needs working wireguard to box
enable = false;
databases = [ "gitea" "freshrss" "woodpecker" ];
location = "/mnt/two/postgres";
};
mossnet.backup = {
enable = true;
name = "helix";
paths = [
"/var/lib/gitea"
"/var/lib/freshrss"
"/var/lib/woodpecker"
"/var/lib/microbin"
];
};
2022-09-18 15:13:50 -07:00
}