mirror of
https://git.kb-one.de/kb01/aux-config.git
synced 2025-12-05 18:28:53 +00:00
110 lines
2.6 KiB
Nix
110 lines
2.6 KiB
Nix
{ lib, config, pkgs, ... }:
|
|
let
|
|
cfg = config.suites.desktop;
|
|
in {
|
|
|
|
imports = [
|
|
./firefox.nix
|
|
./chromium.nix
|
|
];
|
|
|
|
options.suites.desktop = {
|
|
enable = lib.mkEnableOption "Desktop";
|
|
|
|
firefox.enable = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = cfg.enable;
|
|
example = true;
|
|
description = "Enable Firefox";
|
|
};
|
|
firefox.disableuBlockOrigin = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
firefox.disableIDontCareAboutCookies = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
firefox.disableKeepassxcBrowser = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
firefox.disableOfflineQr = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
firefox.disableDarkReader = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
firefox.disableLanguageTool = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
firefox.disableDefaultBookmarks = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
|
|
chromium.enable = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = cfg.enable;
|
|
example = true;
|
|
description = "Enable Chromium";
|
|
};
|
|
chromium.enableWideVine = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = true;
|
|
example = false;
|
|
};
|
|
chromium.disableChromiumWebStore = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
chromium.disableuBlockOrigin = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
chromium.disableIDontCareAboutCookies = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
chromium.disableKeepassxcBrowser = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
chromium.disableLanguageTool = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
chromium.disableDarkReader = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
};
|
|
|
|
sway-experiments.enable = lib.mkOption {
|
|
type = with lib.types; bool;
|
|
default = false;
|
|
example = true;
|
|
description = "Enable Sway Experiments";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
};
|
|
}
|