Skip to content
Snippets Groups Projects
policy.nix 498 B
Newer Older
  • Learn to ignore specific revisions
  • # Codify our log data retention policy
    
    Florian Sesser's avatar
    Florian Sesser committed
    #
    # A maximum retention of 30 days conforms to the published log retention policy,
    # see https://private.storage/privacy-policy/ .
    
    
    { options, lib, ... }: {
      options.services.private-storage.monitoring.policy = {
        logRetentionSeconds = lib.mkOption {
          type = lib.types.int;
          description = "How long do we retain logs (seconds)";
    
    Florian Sesser's avatar
    Florian Sesser committed
          default = 29 * (24 * 60 * 60);  # 29 days, to accomodate for the journald log rotation (1 day).