aboutsummaryrefslogtreecommitdiff
path: root/profiles/forgetActivity.nix
blob: 85e2093ca07d66b38975edbc94f25c7f0fa90eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, ... }: with lib; {
  options.dataFrugality.forgetActivity = lib.mkOption {
    type = types.bool;
    default = false;
    description = ''
      Delete all data accumulated during the users browsing session,
      or prevent persistent storage in the first place.
    '';
  };

  config = lib.mkIf config.dataFrugality.forgetActivity {
    policies = {
      SanitizeOnShutdown = true;
    };

    preferences = {
      browser.cache.disk.enabled = false;
    };
  };
}