2022-06-13 23:05:12 -07:00
|
|
|
{ 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??
|
|
|
|
services."grasp".enable = true;
|
|
|
|
services."grasp".path = "/home/anish/kitaab/grasp";
|
|
|
|
services."grasp".user = "anish";
|
2022-06-13 22:23:09 -07:00
|
|
|
|
2022-06-13 23:06:42 -07:00
|
|
|
# Backups
|
2022-06-13 23:05:12 -07:00
|
|
|
age.secrets.borg-password.file = "${self}/secrets/borg-password.age";
|
2022-06-13 22:23:09 -07:00
|
|
|
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
|
|
|
|
];
|
|
|
|
# seafile?
|
|
|
|
# syncthing
|
|
|
|
};
|
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-04-23 21:57:29 -07:00
|
|
|
}
|