style: Apply new nixfmt formatting
This commit is contained in:
parent
895afdce5a
commit
f8167209eb
4 changed files with 126 additions and 129 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue