helm/hosts/box/default.nix

48 lines
1.4 KiB
Nix
Raw Permalink Normal View History

{ self, profiles, suites, ... }:
2022-04-23 21:57:29 -07:00
{
imports = [
./configuration.nix
2022-04-23 22:06:57 -07:00
] ++ suites.mossnet;
2022-04-23 21:57:29 -07:00
home-manager.users.anish = { self, suites, ... }: {
imports = [ ] ++ suites.hmBase;
};
2022-05-16 05:53:38 -07:00
# For some reason this doesn't work in the profile, but does over here??
2022-07-01 07:21:51 -07:00
# Something weird in the way I'm importing nixpkgs in the profile or something
2022-05-16 05:53:38 -07:00
services."grasp".enable = true;
services."grasp".path = "/home/anish/kitaab/grasp/grasp.wiki";
2022-05-16 05:53:38 -07:00
services."grasp".user = "anish";
2022-06-13 23:06:42 -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
2022-07-01 07:21:51 -07:00
"/home/anish/usr/drawing" # syncthing
"/home/anish/usr/nonfiction" # syncthing
"/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul
];
2022-07-01 07:21:51 -07:00
# seafile
};
2022-06-14 00:29:17 -07:00
2022-06-14 00:34:19 -07:00
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";
};
2022-07-01 07:21:51 -07:00
services.syncthing.guiAddress = "0.0.0.0:8384"; # public syncthing
2022-04-23 21:57:29 -07:00
}