···23232424 environmentFile = mkOption {
2525 type = with types; nullOr str;
2626- # added on 2021-08-28, s3CredentialsFile should
2727- # be removed in the future (+ remember the warning)
2828- default = config.s3CredentialsFile;
2626+ default = null;
2927 description = lib.mdDoc ''
3028 file containing the credentials to access the repository, in the
3129 format of an EnvironmentFile as described by systemd.exec(5)
3232- '';
3333- };
3434-3535- s3CredentialsFile = mkOption {
3636- type = with types; nullOr str;
3737- default = null;
3838- description = lib.mdDoc ''
3939- file containing the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
4040- for an S3-hosted repository, in the format of an EnvironmentFile
4141- as described by systemd.exec(5)
4230 '';
4331 };
4432···300288 };
301289302290 config = {
303303- warnings = mapAttrsToList (n: v: "services.restic.backups.${n}.s3CredentialsFile is deprecated, please use services.restic.backups.${n}.environmentFile instead.") (filterAttrs (n: v: v.s3CredentialsFile != null) config.services.restic.backups);
304291 assertions = mapAttrsToList (n: v: {
305292 assertion = (v.repository == null) != (v.repositoryFile == null);
306293 message = "services.restic.backups.${n}: exactly one of repository or repositoryFile should be set";