helm/hosts/helix/default.nix

53 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
2024-07-14 16:52:11 -07:00
../profiles/site
2024-03-15 23:25:49 -07:00
# ../profiles/postgres_upgrade_script
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
2024-03-15 23:25:49 -07:00
services.postgresql.package = pkgs.postgresql_15;
2023-05-30 05:22:21 -07:00
services.postgresqlBackup = {
# TODO needs working wireguard to box
enable = false;
2024-03-15 23:25:49 -07:00
databases = [ "gitea" "freshrss" ]; # "woodpecker"
2023-05-30 05:22:21 -07:00
location = "/mnt/two/postgres";
};
mossnet.backup = {
enable = true;
name = "helix";
paths = [
"/var/lib/gitea"
"/var/lib/freshrss"
2024-03-15 23:25:49 -07:00
# "/var/lib/woodpecker"
2023-05-30 05:22:21 -07:00
"/var/lib/microbin"
];
};
2022-09-18 15:13:50 -07:00
}