From 367b0c114f38d5c332f5ee971ad13dd69e302dec Mon Sep 17 00:00:00 2001 From: tilpner Date: Mon, 15 Jun 2020 09:53:06 +0200 Subject: WIP towards module based configuration --- profiles/disableClutter.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 profiles/disableClutter.nix (limited to 'profiles/disableClutter.nix') diff --git a/profiles/disableClutter.nix b/profiles/disableClutter.nix new file mode 100644 index 0000000..a19d531 --- /dev/null +++ b/profiles/disableClutter.nix @@ -0,0 +1,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; + }; + }; +} -- cgit v1.2.3