nixos/restic: remove s3CredentialsFile option

This has been deprecated since 2021, so all users should have seen the
warning and migrated by now.

+1 -14
+1 -14
nixos/modules/services/backup/restic.nix
··· 23 23 24 24 environmentFile = mkOption { 25 25 type = with types; nullOr str; 26 - # added on 2021-08-28, s3CredentialsFile should 27 - # be removed in the future (+ remember the warning) 28 - default = config.s3CredentialsFile; 26 + default = null; 29 27 description = lib.mdDoc '' 30 28 file containing the credentials to access the repository, in the 31 29 format of an EnvironmentFile as described by systemd.exec(5) 32 - ''; 33 - }; 34 - 35 - s3CredentialsFile = mkOption { 36 - type = with types; nullOr str; 37 - default = null; 38 - description = lib.mdDoc '' 39 - file containing the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY 40 - for an S3-hosted repository, in the format of an EnvironmentFile 41 - as described by systemd.exec(5) 42 30 ''; 43 31 }; 44 32 ··· 300 288 }; 301 289 302 290 config = { 303 - 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); 304 291 assertions = mapAttrsToList (n: v: { 305 292 assertion = (v.repository == null) != (v.repositoryFile == null); 306 293 message = "services.restic.backups.${n}: exactly one of repository or repositoryFile should be set";