Compare commits
42 commits
5abcc66191
...
376a622549
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 376a622549 | ||
Bruno BELANYI | 5d56a8ddf0 | ||
Bruno BELANYI | 11bd7b30c1 | ||
Bruno BELANYI | 4eb7d0cd38 | ||
Bruno BELANYI | 9b0c8c1910 | ||
Bruno BELANYI | 0ccc4b576b | ||
Bruno BELANYI | 9b9f55081e | ||
Bruno BELANYI | f4c15a1e3b | ||
Bruno BELANYI | 7bdf6ce35e | ||
Bruno BELANYI | 6450545bd9 | ||
Bruno BELANYI | f0d0c06276 | ||
Bruno BELANYI | df809a24f8 | ||
Bruno BELANYI | e68aa49f29 | ||
Bruno BELANYI | df917ad9f0 | ||
Bruno BELANYI | 3068850c5c | ||
Bruno BELANYI | 0842666f67 | ||
Bruno BELANYI | 420ea0dbbf | ||
Bruno BELANYI | 18b078ae09 | ||
Bruno BELANYI | 2854952f0b | ||
Bruno BELANYI | f09db97960 | ||
Bruno BELANYI | fce6fd6e79 | ||
Bruno BELANYI | dbc919e3d8 | ||
Bruno BELANYI | 19c4586073 | ||
Bruno BELANYI | c07d3f4c0b | ||
Bruno BELANYI | 79274dac40 | ||
Bruno BELANYI | dc0d753625 | ||
Bruno BELANYI | 72ffc1c25a | ||
Bruno BELANYI | 88f8f8a6cd | ||
Bruno BELANYI | 8c5ada0d6d | ||
Bruno BELANYI | 0ac6fef308 | ||
Bruno BELANYI | 34592cfd52 | ||
Bruno BELANYI | 075a52f8db | ||
Bruno BELANYI | f2b5290df7 | ||
Bruno BELANYI | e74aceee24 | ||
Bruno BELANYI | 110aef16e4 | ||
Bruno BELANYI | 5efdd891db | ||
Bruno BELANYI | 4be4f5e3cd | ||
Bruno BELANYI | 7e568c29ce | ||
Bruno BELANYI | d0a7ec4d81 | ||
Bruno BELANYI | 828621041a | ||
Bruno BELANYI | 0f2109c4b0 | ||
Bruno BELANYI | 05fdbcdb76 |
|
@ -71,7 +71,7 @@ in
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
cfg.downloadDir
|
cfg.downloadDir
|
||||||
"/var/lib/aria2"
|
config.users.users.aria2.home
|
||||||
];
|
];
|
||||||
|
|
||||||
# NOTE: unfortunately aria2 does not log connection failures for fail2ban
|
# NOTE: unfortunately aria2 does not log connection failures for fail2ban
|
||||||
|
|
|
@ -35,7 +35,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/fail2ban"
|
"/var/lib/${config.systemd.services.fail2ban.serviceConfig.StateDirectory}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/flood"
|
"/var/lib/${config.systemd.services.flood.serviceConfig.StateDirectory}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# NOTE: unfortunately flood does not log connection failures for fail2ban
|
# NOTE: unfortunately flood does not log connection failures for fail2ban
|
||||||
|
|
|
@ -67,7 +67,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/prowlarr"
|
"/var/lib/${config.systemd.services.prowlarr.serviceConfig.StateDirectory}"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
services.fail2ban.jails = {
|
||||||
|
|
|
@ -39,7 +39,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/jellyfin"
|
"/var/lib/${config.systemd.services.jellyfin.serviceConfig.StateDirectory}"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
services.fail2ban.jails = {
|
||||||
|
|
|
@ -109,7 +109,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/lohr"
|
"/var/lib/${config.systemd.services.lohr.serviceConfig.StateDirectory}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,10 +74,14 @@ in
|
||||||
|
|
||||||
my.services.backup = {
|
my.services.backup = {
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/mealie"
|
config.systemd.services.mealie.environment.DATA_DIR
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
my.system.persist.directories = [
|
||||||
|
config.systemd.services.mealie.environment.DATA_DIR
|
||||||
|
];
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
services.fail2ban.jails = {
|
||||||
mealie = ''
|
mealie = ''
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
|
@ -54,7 +54,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/navidrome"
|
"/var/lib/${config.systemd.services.navidrome.serviceConfig.StateDirectory}"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
services.fail2ban.jails = {
|
||||||
|
|
|
@ -94,6 +94,7 @@ in
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
config.services.nextcloud.home
|
config.services.nextcloud.home
|
||||||
|
config.services.nextcloud.datadir
|
||||||
];
|
];
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
services.fail2ban.jails = {
|
||||||
|
|
|
@ -488,7 +488,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/acme"
|
config.users.user.acme.home
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,8 +148,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
config.services.paperless.dataDir
|
config.services.paperless-ng.dataDir
|
||||||
config.services.paperless.mediaDir
|
config.services.paperless-ng.mediaDir
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/stirling-pdf"
|
"/var/lib/${config.systemd.services.stirling-pdf.serviceConfig.StateDirectory}"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
services.fail2ban.jails = {
|
||||||
|
|
|
@ -55,7 +55,7 @@ in
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
cfg.downloadDirectory
|
cfg.downloadDirectory
|
||||||
"/var/lib/pyload"
|
"/var/lib/${config.systemd.services.pyload.StateDirectory}"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
services.fail2ban.jails = {
|
||||||
|
|
|
@ -26,7 +26,7 @@ let
|
||||||
dataDir =
|
dataDir =
|
||||||
if service != "bazarr"
|
if service != "bazarr"
|
||||||
then config.services.${service}.dataDir
|
then config.services.${service}.dataDir
|
||||||
else "/var/lib/bazarr";
|
else config.users.user.${service}.home;
|
||||||
in
|
in
|
||||||
[ dataDir ];
|
[ dataDir ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -85,14 +85,17 @@ in
|
||||||
|
|
||||||
my.services.backup = {
|
my.services.backup = {
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/tandoor-recipes"
|
"/var/lib/${config.systemd.services.tandoor-recipes.StateDirectory}"
|
||||||
|
config.systemd.services.tandoor-recipes.environment.MEDIA_ROOT
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
"/var/lib/tandoor-recipes"
|
"/var/lib/${config.systemd.services.tandoor-recipes.StateDirectory}"
|
||||||
|
config.systemd.services.tandoor-recipes.environment.MEDIA_ROOT
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# NOTE: unfortunately tandoor-recipes does not log connection failures for fail2ban
|
# NOTE: unfortunately tandoor-recipes does not log connection failures for fail2ban
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
my.system.persist.directories = [
|
my.system.persist.directories = [
|
||||||
cfg.downloadBase
|
|
||||||
config.services.transmission.home
|
config.services.transmission.home
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ in
|
||||||
"/etc/machine-id" # Machine-specific ID
|
"/etc/machine-id" # Machine-specific ID
|
||||||
"/etc/adjtime" # Clock drift factor and offsets
|
"/etc/adjtime" # Clock drift factor and offsets
|
||||||
]
|
]
|
||||||
++ lib.unique cfg.files
|
++ cfg.files
|
||||||
;
|
;
|
||||||
|
|
||||||
directories = [
|
directories = [
|
||||||
|
@ -63,7 +63,7 @@ in
|
||||||
"/var/spool" # FIXME: needed?
|
"/var/spool" # FIXME: needed?
|
||||||
"/var/tmp" # FIXME: needed?
|
"/var/tmp" # FIXME: needed?
|
||||||
]
|
]
|
||||||
++ lib.unique cfg.directories
|
++ cfg.directories
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue