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:
parent
fefb810d97
commit
4a0d8c4254
16 changed files with 36 additions and 24 deletions
|
@ -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" ];
|
||||
});
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ in systemConfiguration {
|
|||
}];
|
||||
};
|
||||
|
||||
services.restic.backups = genAttrs config.resticHosts (_: {
|
||||
services.restic.backups = genAttrs config.resticHosts (const {
|
||||
paths = [ "/var/lib/grafana" ];
|
||||
});
|
||||
|
||||
|
|
|
@ -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" ];
|
||||
});
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ in systemConfiguration {
|
|||
}];
|
||||
};
|
||||
|
||||
services.restic.backups = genAttrs config.resticHosts (_: {
|
||||
services.restic.backups = genAttrs config.resticHosts (const {
|
||||
paths = [ "/var/lib/nextcloud" ];
|
||||
});
|
||||
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
|
@ -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}";
|
||||
|
||||
|
|
|
@ -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 ];
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue