helm/hosts/box/default.nix

65 lines
1.7 KiB
Nix
Raw Normal View History

2022-12-05 23:09:27 -08:00
{ self, pkgs, ... }:
2022-09-18 15:13:50 -07:00
{
imports = [
./configuration.nix
2022-12-05 23:09:27 -08:00
../profiles/core
../profiles/server
../profiles/taskd
../profiles/shaarli
../profiles/dns
../profiles/monitoring
../profiles/nfs
../profiles/gonic
../profiles/headphones
../profiles/radicale
../profiles/seafile
../profiles/syncthing
../profiles/dhyan
../profiles/calibre
../profiles/wallabag
../profiles/finance
2022-12-13 07:05:56 -08:00
# ../profiles/archivebox
2022-12-21 03:42:06 -08:00
../profiles/woodpecker-agent
2022-12-05 23:09:27 -08:00
];
2022-09-18 15:13:50 -07:00
2023-01-13 03:22:24 -08:00
# Something broke when manually updating grasp...
# services.grasp.enable = true;
# services.grasp.path = "/home/anish/kitaab/grasp/grasp.wiki";
# services.grasp.user = "anish";
2022-09-18 15:13:50 -07:00
# Backups
age.secrets.borg-password.file = "${self}/secrets/borg-password.age";
services.postgresqlBackup = {
enable = true;
databases = [ "wallabag" ];
location = "/var/backup/postgresql";
};
mossnet.backup = {
enable = true;
name = "mossnet";
paths = [
"/var/lib/taskserver" # taskwarrior
"/var/www/shaarli-config" # sharli
"/var/backup/postgresql" # wallabag
"/var/lib/radicale" # radicale
"/home/anish/usr/drawing" # syncthing
2022-12-15 02:29:28 -08:00
"/data/books" # calibre-web
2022-12-10 04:09:21 -08:00
# "/home/anish/usr/nonfiction" # syncthing
"/home/anish/usr/finance" # beancount
2022-09-18 15:13:50 -07:00
"/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul
];
# seafile
};
age.secrets.box-wg.file = "${self}/secrets/box-wg.age";
age.secrets.box-wg.owner = "anish";
mossnet.wg = {
enable = true;
ips = [ "10.0.69.4/24" ];
privateKeyFile = "/run/agenix/box-wg";
};
services.syncthing.guiAddress = "0.0.0.0:8384"; # public syncthing
system.stateVersion = "19.09";
}