diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-12-30 16:30:20 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2025-03-14 01:01:36 +0100 |
commit | f5426be2f5340cfe103a8cf0153821dffe7c55d4 (patch) | |
tree | 136ff0d7a9bdec654502437acff1c7153aed128a /systems | |
parent | 710a9a6617422335bb84c5314394977310c073ef (diff) | |
download | Nix-f5426be2f5340cfe103a8cf0153821dffe7c55d4.tar.gz Nix-f5426be2f5340cfe103a8cf0153821dffe7c55d4.tar.zst Nix-f5426be2f5340cfe103a8cf0153821dffe7c55d4.zip |
Add missing borg backup config
Diffstat (limited to 'systems')
27 files changed, 137 insertions, 1 deletions
diff --git a/systems/eldiron/base.nix b/systems/eldiron/base.nix index 4546212..3213e70 100644 --- a/systems/eldiron/base.nix +++ b/systems/eldiron/base.nix | |||
@@ -137,12 +137,26 @@ | |||
137 | bucket = "global"; | 137 | bucket = "global"; |
138 | hash = false; | 138 | hash = false; |
139 | remotes = [ "attilax" ]; | 139 | remotes = [ "attilax" ]; |
140 | includedPaths = [ | ||
141 | "acme" | ||
142 | "fail2ban" | ||
143 | "logrotate.status" | ||
144 | "systemd/backlight" | ||
145 | "systemd/catalog" | ||
146 | "systemd/random-seed" | ||
147 | "systemd/linger" | ||
148 | "systemd/timers" | ||
149 | "systemd/timesync" | ||
150 | ]; | ||
140 | ignoredPaths = [ | 151 | ignoredPaths = [ |
141 | "udev" | 152 | "udev" |
142 | "portables" | 153 | "portables" |
143 | "machines" | 154 | "machines" |
144 | "nixos" | 155 | "nixos" |
156 | "udisks2" | ||
145 | "nixos-containers" | 157 | "nixos-containers" |
158 | "private/systemd" | ||
159 | "systemd/coredump" | ||
146 | ]; | 160 | ]; |
147 | }; | 161 | }; |
148 | myServices.buildbot.enable = true; | 162 | myServices.buildbot.enable = true; |
diff --git a/systems/eldiron/buildbot/default.nix b/systems/eldiron/buildbot/default.nix index e86b081..8618ec4 100644 --- a/systems/eldiron/buildbot/default.nix +++ b/systems/eldiron/buildbot/default.nix | |||
@@ -15,6 +15,11 @@ in | |||
15 | }; | 15 | }; |
16 | 16 | ||
17 | config = lib.mkIf config.myServices.buildbot.enable { | 17 | config = lib.mkIf config.myServices.buildbot.enable { |
18 | services.borgBackup.profiles.global.includedPaths = [ | ||
19 | "buildbot/.ssh" | ||
20 | "buildbot/buildbot_key" | ||
21 | "buildbot/buildbot_hosts" | ||
22 | ]; | ||
18 | myEnv.buildbot.projects.test = { | 23 | myEnv.buildbot.projects.test = { |
19 | name = "test"; | 24 | name = "test"; |
20 | workerPort = config.myEnv.ports.buildbot_test; | 25 | workerPort = config.myEnv.ports.buildbot_test; |
diff --git a/systems/eldiron/databases/mariadb.nix b/systems/eldiron/databases/mariadb.nix index b4a6917..a6e7ca3 100644 --- a/systems/eldiron/databases/mariadb.nix +++ b/systems/eldiron/databases/mariadb.nix | |||
@@ -74,6 +74,9 @@ in { | |||
74 | }; | 74 | }; |
75 | 75 | ||
76 | config = lib.mkIf cfg.enable { | 76 | config = lib.mkIf cfg.enable { |
77 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
78 | "mysql" | ||
79 | ]; | ||
77 | networking.firewall.allowedTCPPorts = [ config.myEnv.databases.mysql.port ]; | 80 | networking.firewall.allowedTCPPorts = [ config.myEnv.databases.mysql.port ]; |
78 | 81 | ||
79 | # for adminer, ssl is implemented with mysqli only, which is | 82 | # for adminer, ssl is implemented with mysqli only, which is |
diff --git a/systems/eldiron/databases/postgresql.nix b/systems/eldiron/databases/postgresql.nix index 721059a..573b173 100644 --- a/systems/eldiron/databases/postgresql.nix +++ b/systems/eldiron/databases/postgresql.nix | |||
@@ -95,6 +95,9 @@ in { | |||
95 | }; | 95 | }; |
96 | 96 | ||
97 | config = lib.mkIf cfg.enable { | 97 | config = lib.mkIf cfg.enable { |
98 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
99 | "postgresql" | ||
100 | ]; | ||
98 | networking.firewall.allowedTCPPorts = [ 5432 ]; | 101 | networking.firewall.allowedTCPPorts = [ 5432 ]; |
99 | 102 | ||
100 | security.acme.certs."postgresql" = { | 103 | security.acme.certs."postgresql" = { |
diff --git a/systems/eldiron/databases/redis.nix b/systems/eldiron/databases/redis.nix index 1f57aa9..45b36d5 100644 --- a/systems/eldiron/databases/redis.nix +++ b/systems/eldiron/databases/redis.nix | |||
@@ -30,6 +30,10 @@ in { | |||
30 | }; | 30 | }; |
31 | 31 | ||
32 | config = lib.mkIf cfg.enable { | 32 | config = lib.mkIf cfg.enable { |
33 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
34 | "redis" | ||
35 | "spiped" | ||
36 | ]; | ||
33 | users.users.redis.uid = config.ids.uids.redis; | 37 | users.users.redis.uid = config.ids.uids.redis; |
34 | users.groups.redis.gid = config.ids.gids.redis; | 38 | users.groups.redis.gid = config.ids.gids.redis; |
35 | services.redis.servers."" = { | 39 | services.redis.servers."" = { |
diff --git a/systems/eldiron/dns.nix b/systems/eldiron/dns.nix index 3d5aafa..2b369af 100644 --- a/systems/eldiron/dns.nix +++ b/systems/eldiron/dns.nix | |||
@@ -164,6 +164,10 @@ in | |||
164 | config = let | 164 | config = let |
165 | cfg = config.services.bind; | 165 | cfg = config.services.bind; |
166 | in lib.mkIf config.myServices.dns.enable { | 166 | in lib.mkIf config.myServices.dns.enable { |
167 | services.borgBackup.profiles.global.includedPaths = [ | ||
168 | "named" | ||
169 | ]; | ||
170 | |||
167 | myServices.chatonsProperties.hostings.dns-secondaire = { | 171 | myServices.chatonsProperties.hostings.dns-secondaire = { |
168 | file.datetime = "2022-08-22T02:00:00"; | 172 | file.datetime = "2022-08-22T02:00:00"; |
169 | hosting = { | 173 | hosting = { |
diff --git a/systems/eldiron/ejabberd/default.nix b/systems/eldiron/ejabberd/default.nix index 463d255..a4ab82c 100644 --- a/systems/eldiron/ejabberd/default.nix +++ b/systems/eldiron/ejabberd/default.nix | |||
@@ -14,6 +14,9 @@ in | |||
14 | }; | 14 | }; |
15 | 15 | ||
16 | config = lib.mkIf cfg.enable { | 16 | config = lib.mkIf cfg.enable { |
17 | services.borgBackup.profiles.global.includedPaths = [ | ||
18 | "ejabberd" | ||
19 | ]; | ||
17 | myServices.dns.zones."immae.fr" = with config.myServices.dns.helpers; | 20 | myServices.dns.zones."immae.fr" = with config.myServices.dns.helpers; |
18 | lib.mkMerge [ | 21 | lib.mkMerge [ |
19 | { | 22 | { |
diff --git a/systems/eldiron/gemini/default.nix b/systems/eldiron/gemini/default.nix index fc21413..4ef4e5e 100644 --- a/systems/eldiron/gemini/default.nix +++ b/systems/eldiron/gemini/default.nix | |||
@@ -2,6 +2,9 @@ | |||
2 | { | 2 | { |
3 | options.myServices.gemini.enable = lib.mkEnableOption "enable Gemini capsule"; | 3 | options.myServices.gemini.enable = lib.mkEnableOption "enable Gemini capsule"; |
4 | config = lib.mkIf config.myServices.gemini.enable { | 4 | config = lib.mkIf config.myServices.gemini.enable { |
5 | services.borgBackup.profiles.global.includedPaths = [ | ||
6 | "gemini" | ||
7 | ]; | ||
5 | myServices.chatonsProperties.hostings.gemini = { | 8 | myServices.chatonsProperties.hostings.gemini = { |
6 | file.datetime = "2022-08-27T18:00:00"; | 9 | file.datetime = "2022-08-27T18:00:00"; |
7 | hosting = { | 10 | hosting = { |
diff --git a/systems/eldiron/irc.nix b/systems/eldiron/irc.nix index c48a4b3..03ed8a1 100644 --- a/systems/eldiron/irc.nix +++ b/systems/eldiron/irc.nix | |||
@@ -14,6 +14,10 @@ in | |||
14 | }; | 14 | }; |
15 | 15 | ||
16 | config = lib.mkIf cfg.enable { | 16 | config = lib.mkIf cfg.enable { |
17 | services.borgBackup.profiles.global.includedPaths = [ | ||
18 | "bitlbee" | ||
19 | "private/bitlbee" | ||
20 | ]; | ||
17 | myServices.dns.zones."immae.eu".subdomains.irc = | 21 | myServices.dns.zones."immae.eu".subdomains.irc = |
18 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 22 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
19 | 23 | ||
diff --git a/systems/eldiron/mail/default.nix b/systems/eldiron/mail/default.nix index 4e13f6a..a6acce0 100644 --- a/systems/eldiron/mail/default.nix +++ b/systems/eldiron/mail/default.nix | |||
@@ -9,6 +9,10 @@ | |||
9 | 9 | ||
10 | options.myServices.mail.enable = lib.mkEnableOption "enable Mail services"; | 10 | options.myServices.mail.enable = lib.mkEnableOption "enable Mail services"; |
11 | config = lib.mkIf config.myServices.mail.enable { | 11 | config = lib.mkIf config.myServices.mail.enable { |
12 | services.borgBackup.profiles.global.includedPaths = [ | ||
13 | "opendkim" | ||
14 | "vhost/immae.eu" | ||
15 | ]; | ||
12 | myServices.mail.milters.enable = true; | 16 | myServices.mail.milters.enable = true; |
13 | security.acme.certs."mail" = { | 17 | security.acme.certs."mail" = { |
14 | postRun = lib.mkBefore '' | 18 | postRun = lib.mkBefore '' |
diff --git a/systems/eldiron/mail/dovecot.nix b/systems/eldiron/mail/dovecot.nix index 9c9cd7c..a14e400 100644 --- a/systems/eldiron/mail/dovecot.nix +++ b/systems/eldiron/mail/dovecot.nix | |||
@@ -13,6 +13,14 @@ let | |||
13 | in | 13 | in |
14 | { | 14 | { |
15 | config = lib.mkIf config.myServices.mail.enable { | 15 | config = lib.mkIf config.myServices.mail.enable { |
16 | services.borgBackup.profiles.global.includedPaths = [ | ||
17 | "dhparams" | ||
18 | ]; | ||
19 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
20 | "vhost/.sieve_bin" | ||
21 | "vhost/.imapsieve_bin" | ||
22 | "dovecot" | ||
23 | ]; | ||
16 | myServices.dns.zones."immae.eu".subdomains = | 24 | myServices.dns.zones."immae.eu".subdomains = |
17 | with config.myServices.dns.helpers; | 25 | with config.myServices.dns.helpers; |
18 | { | 26 | { |
diff --git a/systems/eldiron/mail/postfix.nix b/systems/eldiron/mail/postfix.nix index ce7615d..c526c84 100644 --- a/systems/eldiron/mail/postfix.nix +++ b/systems/eldiron/mail/postfix.nix | |||
@@ -10,6 +10,13 @@ in | |||
10 | apply = builtins.mapAttrs (n: v: if builtins.isList v then builtins.concatStringsSep "," v else v); | 10 | apply = builtins.mapAttrs (n: v: if builtins.isList v then builtins.concatStringsSep "," v else v); |
11 | }; | 11 | }; |
12 | config = lib.mkIf config.myServices.mail.enable { | 12 | config = lib.mkIf config.myServices.mail.enable { |
13 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
14 | "postfix/conf" | ||
15 | "postfix/data" | ||
16 | ]; | ||
17 | services.borgBackup.profiles.global.includedPaths = [ | ||
18 | "postfix/queue" | ||
19 | ]; | ||
13 | myServices.dns.zones."immae.eu" = with config.myServices.dns.helpers; lib.mkMerge [ | 20 | myServices.dns.zones."immae.eu" = with config.myServices.dns.helpers; lib.mkMerge [ |
14 | mailMX | 21 | mailMX |
15 | (mailCommon "immae.eu" true) | 22 | (mailCommon "immae.eu" true) |
diff --git a/systems/eldiron/mail/rspamd.nix b/systems/eldiron/mail/rspamd.nix index 8a2b5f3..2385991 100644 --- a/systems/eldiron/mail/rspamd.nix +++ b/systems/eldiron/mail/rspamd.nix | |||
@@ -11,6 +11,13 @@ | |||
11 | ''; | 11 | ''; |
12 | }; | 12 | }; |
13 | config = lib.mkIf config.myServices.mail.enable { | 13 | config = lib.mkIf config.myServices.mail.enable { |
14 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
15 | "vhost/.rspamd/rspamd.log" | ||
16 | "vhost/scan_reported_mails.lock" | ||
17 | ]; | ||
18 | services.borgBackup.profiles.global.includedPaths = [ | ||
19 | "rspamd" | ||
20 | ]; | ||
14 | services.cron.systemCronJobs = let | 21 | services.cron.systemCronJobs = let |
15 | cron_script = pkgs.runCommand "cron_script" { | 22 | cron_script = pkgs.runCommand "cron_script" { |
16 | buildInputs = [ pkgs.makeWrapper ]; | 23 | buildInputs = [ pkgs.makeWrapper ]; |
diff --git a/systems/eldiron/mail/sympa.nix b/systems/eldiron/mail/sympa.nix index 07175e8..9f57f0a 100644 --- a/systems/eldiron/mail/sympa.nix +++ b/systems/eldiron/mail/sympa.nix | |||
@@ -5,6 +5,24 @@ let | |||
5 | in | 5 | in |
6 | { | 6 | { |
7 | config = lib.mkIf config.myServices.mail.enable { | 7 | config = lib.mkIf config.myServices.mail.enable { |
8 | services.borgBackup.profiles.global.includedPaths = [ | ||
9 | "sympa/spool/auth" | ||
10 | "sympa/spool/automatic" | ||
11 | "sympa/spool/bounce" | ||
12 | "sympa/spool/bulk" | ||
13 | "sympa/spool/moderation" | ||
14 | "sympa/spool/msg" | ||
15 | "sympa/spool/outgoing" | ||
16 | "sympa/spool/subscribe" | ||
17 | "sympa/spool/task" | ||
18 | "sympa/spool/tmp" | ||
19 | "sympa/spool/viewmail" | ||
20 | "sympa/etc" | ||
21 | "sympa/static_content" | ||
22 | "sympa/sympa_transport" | ||
23 | "sympa/sympa_transport.db" | ||
24 | "sympa/sympa_transport.db.bak" | ||
25 | ]; | ||
8 | myServices.dns.zones."immae.eu".emailPolicies."lists".receive = true; | 26 | myServices.dns.zones."immae.eu".emailPolicies."lists".receive = true; |
9 | myServices.dns.zones."immae.eu".subdomains.lists = | 27 | myServices.dns.zones."immae.eu".subdomains.lists = |
10 | with config.myServices.dns.helpers; lib.mkMerge [ | 28 | with config.myServices.dns.helpers; lib.mkMerge [ |
diff --git a/systems/eldiron/monitoring.nix b/systems/eldiron/monitoring.nix index f3b9aeb..92d3b38 100644 --- a/systems/eldiron/monitoring.nix +++ b/systems/eldiron/monitoring.nix | |||
@@ -4,6 +4,9 @@ let | |||
4 | emailCheck = monitoring.lib.emailCheck config.myEnv.monitoring.email_check; | 4 | emailCheck = monitoring.lib.emailCheck config.myEnv.monitoring.email_check; |
5 | in | 5 | in |
6 | { | 6 | { |
7 | config.services.borgBackup.profiles.global.includedPaths = [ | ||
8 | "naemon" | ||
9 | ]; | ||
7 | config.myServices.monitoring.smartdDisks = [ | 10 | config.myServices.monitoring.smartdDisks = [ |
8 | "ata-ST33000650NS_Z29540DM" | 11 | "ata-ST33000650NS_Z29540DM" |
9 | "ata-ST33000650NS_Z296JGJ4" | 12 | "ata-ST33000650NS_Z296JGJ4" |
diff --git a/systems/eldiron/pub/default.nix b/systems/eldiron/pub/default.nix index 847e9d0..81c0c22 100644 --- a/systems/eldiron/pub/default.nix +++ b/systems/eldiron/pub/default.nix | |||
@@ -41,7 +41,8 @@ in | |||
41 | 41 | ||
42 | config = lib.mkIf config.myServices.pub.enable { | 42 | config = lib.mkIf config.myServices.pub.enable { |
43 | services.borgBackup.profiles.global.ignoredPaths = [ | 43 | services.borgBackup.profiles.global.ignoredPaths = [ |
44 | "pub/.nix-.*" | 44 | "pub/.nix-profile" |
45 | "pub/.nix-defexpr" | ||
45 | ]; | 46 | ]; |
46 | myServices.dns.zones."immae.eu".subdomains.pub = | 47 | myServices.dns.zones."immae.eu".subdomains.pub = |
47 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 48 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
diff --git a/systems/eldiron/tasks/default.nix b/systems/eldiron/tasks/default.nix index 0772a5f..a68b56b 100644 --- a/systems/eldiron/tasks/default.nix +++ b/systems/eldiron/tasks/default.nix | |||
@@ -85,6 +85,12 @@ in { | |||
85 | }; | 85 | }; |
86 | 86 | ||
87 | config = lib.mkIf cfg.enable { | 87 | config = lib.mkIf cfg.enable { |
88 | services.borgBackup.profiles.global.includedPaths = [ | ||
89 | "taskserver/userkeys" | ||
90 | "taskserver/.is_initialized" | ||
91 | "taskserver/orgs/Immae/.imperative" | ||
92 | "taskserver/keys" | ||
93 | ]; | ||
88 | myServices.dns.zones."immae.eu".subdomains.task = | 94 | myServices.dns.zones."immae.eu".subdomains.task = |
89 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 95 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
90 | 96 | ||
diff --git a/systems/eldiron/vpn/default.nix b/systems/eldiron/vpn/default.nix index a5cc423..be46fb6 100644 --- a/systems/eldiron/vpn/default.nix +++ b/systems/eldiron/vpn/default.nix | |||
@@ -48,6 +48,9 @@ in | |||
48 | }; | 48 | }; |
49 | 49 | ||
50 | config = lib.mkIf cfg.enable { | 50 | config = lib.mkIf cfg.enable { |
51 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
52 | "tinc" | ||
53 | ]; | ||
51 | myServices.dns.zones."immae.eu".subdomains.vpn = with config.myServices.dns.helpers; | 54 | myServices.dns.zones."immae.eu".subdomains.vpn = with config.myServices.dns.helpers; |
52 | ips servers.eldiron.ips.main // { | 55 | ips servers.eldiron.ips.main // { |
53 | subdomains.gw.AAAA = [ "${config.myEnv.vpn.eldiron.prefix}:0:ffff:1" ]; | 56 | subdomains.gw.AAAA = [ "${config.myEnv.vpn.eldiron.prefix}:0:ffff:1" ]; |
diff --git a/systems/eldiron/websites/cloud/default.nix b/systems/eldiron/websites/cloud/default.nix index 3f41efe..25343a7 100644 --- a/systems/eldiron/websites/cloud/default.nix +++ b/systems/eldiron/websites/cloud/default.nix | |||
@@ -9,6 +9,9 @@ in { | |||
9 | }; | 9 | }; |
10 | 10 | ||
11 | config = lib.mkIf cfg.enable { | 11 | config = lib.mkIf cfg.enable { |
12 | services.borgBackup.profiles.global.ignoredPaths = [ | ||
13 | "nextcloud/nextcloud.log" | ||
14 | ]; | ||
12 | services.borgBackup.profiles.global.includedPaths = [ | 15 | services.borgBackup.profiles.global.includedPaths = [ |
13 | "nextcloud/appdata_occ80acffb591" | 16 | "nextcloud/appdata_occ80acffb591" |
14 | "nextcloud/files_external" | 17 | "nextcloud/files_external" |
diff --git a/systems/eldiron/websites/default.nix b/systems/eldiron/websites/default.nix index feecc31..a01141c 100644 --- a/systems/eldiron/websites/default.nix +++ b/systems/eldiron/websites/default.nix | |||
@@ -210,6 +210,10 @@ in | |||
210 | options.myServices.websites.enable = lib.mkEnableOption "enable websites"; | 210 | options.myServices.websites.enable = lib.mkEnableOption "enable websites"; |
211 | 211 | ||
212 | config = lib.mkIf config.myServices.websites.enable { | 212 | config = lib.mkIf config.myServices.websites.enable { |
213 | services.borgBackup.profiles.global.includedPaths = [ | ||
214 | "php/sessions" | ||
215 | "redis-php-sessions" | ||
216 | ]; | ||
213 | myServices.dns.zones."immae.eu".subdomains = with config.myServices.dns.helpers; | 217 | myServices.dns.zones."immae.eu".subdomains = with config.myServices.dns.helpers; |
214 | { | 218 | { |
215 | games = ips servers.eldiron.ips.main; | 219 | games = ips servers.eldiron.ips.main; |
diff --git a/systems/eldiron/websites/diaspora/default.nix b/systems/eldiron/websites/diaspora/default.nix index c536446..cc64680 100644 --- a/systems/eldiron/websites/diaspora/default.nix +++ b/systems/eldiron/websites/diaspora/default.nix | |||
@@ -10,6 +10,9 @@ in { | |||
10 | }; | 10 | }; |
11 | 11 | ||
12 | config = lib.mkIf cfg.enable { | 12 | config = lib.mkIf cfg.enable { |
13 | services.borgBackup.profiles.global.includedPaths = [ | ||
14 | "diaspora_immae" | ||
15 | ]; | ||
13 | myServices.dns.zones."immae.eu".subdomains.diaspora = | 16 | myServices.dns.zones."immae.eu".subdomains.diaspora = |
14 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 17 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
15 | 18 | ||
diff --git a/systems/eldiron/websites/ether/default.nix b/systems/eldiron/websites/ether/default.nix index 3993553..478e66e 100644 --- a/systems/eldiron/websites/ether/default.nix +++ b/systems/eldiron/websites/ether/default.nix | |||
@@ -12,6 +12,10 @@ in { | |||
12 | }; | 12 | }; |
13 | 13 | ||
14 | config = lib.mkIf cfg.enable { | 14 | config = lib.mkIf cfg.enable { |
15 | services.borgBackup.profiles.global.includedPaths = [ | ||
16 | "etherpad-lite" | ||
17 | "private/etherpad-lite" | ||
18 | ]; | ||
15 | myServices.dns.zones."immae.eu".subdomains.ether = | 19 | myServices.dns.zones."immae.eu".subdomains.ether = |
16 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 20 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
17 | 21 | ||
diff --git a/systems/eldiron/websites/games/terraforming-mars/default.nix b/systems/eldiron/websites/games/terraforming-mars/default.nix index e90e72f..71a5168 100644 --- a/systems/eldiron/websites/games/terraforming-mars/default.nix +++ b/systems/eldiron/websites/games/terraforming-mars/default.nix | |||
@@ -6,6 +6,10 @@ in | |||
6 | { | 6 | { |
7 | options.myServices.websites.games.terraforming-mars.enable = lib.mkEnableOption "Enable Terraforming mars game"; | 7 | options.myServices.websites.games.terraforming-mars.enable = lib.mkEnableOption "Enable Terraforming mars game"; |
8 | config = lib.mkIf cfg.enable { | 8 | config = lib.mkIf cfg.enable { |
9 | services.borgBackup.profiles.global.includedPaths = [ | ||
10 | "private/terraforming-mars" | ||
11 | "terraforming-mars" | ||
12 | ]; | ||
9 | myServices.dns.zones."immae.eu".subdomains.games.subdomains.terraforming-mars = with config.myServices.dns.helpers; | 13 | myServices.dns.zones."immae.eu".subdomains.games.subdomains.terraforming-mars = with config.myServices.dns.helpers; |
10 | ips servers.eldiron.ips.main; | 14 | ips servers.eldiron.ips.main; |
11 | myServices.chatonsProperties.services.terraforming-mars = { | 15 | myServices.chatonsProperties.services.terraforming-mars = { |
diff --git a/systems/eldiron/websites/mail/default.nix b/systems/eldiron/websites/mail/default.nix index e212cd2..c051895 100644 --- a/systems/eldiron/websites/mail/default.nix +++ b/systems/eldiron/websites/mail/default.nix | |||
@@ -67,6 +67,11 @@ in | |||
67 | # }; | 67 | # }; |
68 | #}; | 68 | #}; |
69 | 69 | ||
70 | services.borgBackup.profiles.global.includedPaths = [ | ||
71 | "rainloop" | ||
72 | "roundcubemail" | ||
73 | ]; | ||
74 | |||
70 | myServices.dns.zones."immae.eu".subdomains.mail = | 75 | myServices.dns.zones."immae.eu".subdomains.mail = |
71 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 76 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
72 | 77 | ||
diff --git a/systems/eldiron/websites/peertube/default.nix b/systems/eldiron/websites/peertube/default.nix index 0ebe4e7..5303d8f 100644 --- a/systems/eldiron/websites/peertube/default.nix +++ b/systems/eldiron/websites/peertube/default.nix | |||
@@ -9,6 +9,9 @@ in { | |||
9 | }; | 9 | }; |
10 | 10 | ||
11 | config = lib.mkIf cfg.enable { | 11 | config = lib.mkIf cfg.enable { |
12 | services.borgBackup.profiles.global.includedPaths = [ | ||
13 | "peertube" | ||
14 | ]; | ||
12 | myServices.dns.zones."immae.eu".subdomains.peertube = | 15 | myServices.dns.zones."immae.eu".subdomains.peertube = |
13 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 16 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
14 | 17 | ||
diff --git a/systems/eldiron/websites/tools/default.nix b/systems/eldiron/websites/tools/default.nix index 7d8bf5e..9528b20 100644 --- a/systems/eldiron/websites/tools/default.nix +++ b/systems/eldiron/websites/tools/default.nix | |||
@@ -115,15 +115,22 @@ in { | |||
115 | "duply" | 115 | "duply" |
116 | "kanboard" | 116 | "kanboard" |
117 | "ntfy" | 117 | "ntfy" |
118 | "shaarli/data/log.txt" | ||
118 | ]; | 119 | ]; |
119 | services.borgBackup.profiles.global.includedPaths = [ | 120 | services.borgBackup.profiles.global.includedPaths = [ |
120 | "paste" | 121 | "paste" |
121 | "dokuwiki/conf" | 122 | "dokuwiki/conf" |
122 | "dokuwiki/data" | 123 | "dokuwiki/data" |
123 | "phpbb" | 124 | "phpbb" |
125 | "shaarli/data/datastore.php" | ||
126 | "shaarli/data/.htaccess" | ||
127 | "shaarli/data/ipbans.php" | ||
128 | "shaarli/data/config.json.php" | ||
124 | "shaarli/cache" | 129 | "shaarli/cache" |
125 | "shaarli/pagecache" | 130 | "shaarli/pagecache" |
126 | "shaarli/tmp" | 131 | "shaarli/tmp" |
132 | "ttrss" | ||
133 | "wallabag" | ||
127 | ]; | 134 | ]; |
128 | 135 | ||
129 | myServices.chatonsProperties.services = { | 136 | myServices.chatonsProperties.services = { |
diff --git a/systems/eldiron/websites/visio/default.nix b/systems/eldiron/websites/visio/default.nix index 76d1960..0d2c96c 100644 --- a/systems/eldiron/websites/visio/default.nix +++ b/systems/eldiron/websites/visio/default.nix | |||
@@ -8,6 +8,9 @@ in { | |||
8 | }; | 8 | }; |
9 | 9 | ||
10 | config = lib.mkIf cfg.enable { | 10 | config = lib.mkIf cfg.enable { |
11 | services.borgBackup.profiles.global.includedPaths = [ | ||
12 | "galene" | ||
13 | ]; | ||
11 | myServices.dns.zones."immae.eu".subdomains.visio = | 14 | myServices.dns.zones."immae.eu".subdomains.visio = |
12 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; | 15 | with config.myServices.dns.helpers; ips servers.eldiron.ips.main; |
13 | 16 | ||