aboutsummaryrefslogtreecommitdiff
path: root/profiles/disableClutter.nix
blob: a19d5314f7c1e67257591b2da5e994e4aa63668c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, ... }: with lib; {
  options.ui.removeClutter = lib.mkOption {
    type = types.bool;
    default = false;
    description = ''
      Disable potentionally distracting features, to let the user focus.

      This module does not aim to improve privacy or security.
    '';
  };

  config = lib.mkIf config.ui.removeClutter {
    policies = {
      Homepage.StartPage = "none";
    };

    preferences = {
      browser.slowStartup.notificationDisabled = true;
    };
  };
}