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
nginx.rotate = 6;
}

View file

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

View file

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

View file

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