1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Use lib.const and fix restic password age file

This commit is contained in:
RGBCube 2024-05-27 13:43:40 +03:00
parent fefb810d97
commit 4a0d8c4254
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
16 changed files with 36 additions and 24 deletions

View file

@ -24,7 +24,7 @@ in systemConfiguration {
}];
};
services.restic.backups = genAttrs config.resticHosts (_: {
services.restic.backups = genAttrs config.resticHosts (const {
paths = [ "/var/lib/gitea-runner" "/var/lib/forgejo" ];
});

View file

@ -24,7 +24,7 @@ in systemConfiguration {
}];
};
services.restic.backups = genAttrs config.resticHosts (_: {
services.restic.backups = genAttrs config.resticHosts (const {
paths = [ "/var/lib/grafana" ];
});

View file

@ -59,7 +59,7 @@ in serverSystemConfiguration {
];
};
services.restic.backups = genAttrs config.resticHosts (_: {
services.restic.backups = genAttrs config.resticHosts (const {
paths = [ "/var/lib/matrix-synapse" "/var/lib/matrix-sliding-sync" ];
});

View file

@ -32,7 +32,7 @@ in systemConfiguration {
}];
};
services.restic.backups = genAttrs config.resticHosts (_: {
services.restic.backups = genAttrs config.resticHosts (const {
paths = [ "/var/lib/nextcloud" ];
});

View file

@ -6,7 +6,7 @@
runAsLocalSuperUser = true;
};
services.restic.backups = genAttrs config.resticHosts (_: {
services.restic.backups = genAttrs config.resticHosts (const {
paths = [ "/tmp/postgresql-dump.sql.gz" ];
backupPrepareCommand = ''

View file

@ -22,7 +22,7 @@ systemConfiguration {
scrapeConfigs = with lib; let
configToScrapeConfig = name: { config, ... }: pipe config.services.prometheus.exporters [
(filterAttrs (_: value: value.enable or false))
(filterAttrs (const (value: value.enable or false)))
(mapAttrsToList (expName: expConfig: {
job_name = "${expName}-${name}";

View file

@ -13,7 +13,7 @@ in systemConfiguration {
listenAddress = "[::]";
};
services.restic.backups = genAttrs config.resticHosts (_: {
services.restic.backups = genAttrs config.resticHosts (const {
paths = [ config.mailserver.dkimKeyDirectory config.mailserver.mailDirectory ];
});