aboutsummaryrefslogtreecommitdiff
path: root/profiles/disableAccounts.nix
blob: b074b394a6ecec419681e1eaf40564f5c0e1bb76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }: with lib; {
  options.features.disableAccounts = mkOption {
    type = types.bool;
    default = false;
    description = ''
      Disable Firefox Accounts.

      This may inconvenience users who already use them on other devices,
      but if we otherwise prevent the local storage of browsing information,
      it would be inconsistent to let the user sign in and potentionally
      store that same information remotely.
    '';
  };

  config.preferences = mkIf config.features.disableAccounts {
    identity.fxaccounts.enabled = false;
  };
}