style: Apply new nixfmt formatting

This commit is contained in:
Tristan Daniël Maat 2025-08-02 18:33:06 +08:00
parent 895afdce5a
commit f8167209eb
Signed by: tlater
GPG key ID: 49670FD774E43268
4 changed files with 126 additions and 129 deletions

View file

@ -20,8 +20,7 @@
''; '';
}; };
logrotate.settings = logrotate.settings = {
{
# Override the default, just keep fewer logs # Override the default, just keep fewer logs
nginx.rotate = 6; nginx.rotate = 6;
} }

View file

@ -140,8 +140,7 @@ in
}; };
config = lib.mkIf (config.services.backups != { }) { config = lib.mkIf (config.services.backups != { }) {
systemd.services = systemd.services = {
{
restic-prune = { restic-prune = {
# Doesn't hurt to finish the ongoing prune # Doesn't hurt to finish the ongoing prune
restartIfChanged = false; restartIfChanged = false;
@ -235,8 +234,7 @@ in
} }
) config.services.backups; ) config.services.backups;
systemd.timers = systemd.timers = {
{
restic-prune = { restic-prune = {
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "Thursday 03:00:00 UTC"; timerConfig.OnCalendar = "Thursday 03:00:00 UTC";

View file

@ -30,8 +30,9 @@
{ {
labels.type = "nginx"; labels.type = "nginx";
filenames = filenames = [
[ "/var/log/nginx/*.log" ] "/var/log/nginx/*.log"
]
++ lib.mapAttrsToList ( ++ lib.mapAttrsToList (
vHost: _: "/var/log/nginx/${vHost}/access.log" vHost: _: "/var/log/nginx/${vHost}/access.log"
) config.services.nginx.virtualHosts; ) config.services.nginx.virtualHosts;

View file

@ -154,8 +154,7 @@ in
lib.recursiveUpdate { lib.recursiveUpdate {
inherit (scrape) job_name; inherit (scrape) job_name;
static_configs = static_configs =
scrape.static_configs scrape.static_configs ++ lib.optional (scrape.targets != [ ]) { inherit (scrape) targets; };
++ lib.optional (scrape.targets != [ ]) { inherit (scrape) targets; };
} scrape.extraSettings } scrape.extraSettings
) config.services.victoriametrics.scrapeConfigs; ) config.services.victoriametrics.scrapeConfigs;
}; };