#config for anything that has a desktop environment { config, lib, pkgs, ... }: let inherit (lib.modules) mkIf; inherit (lib.options) mkEnableOption; cfg = config.core.desktop; in { options.core.desktop = { enable = mkEnableOption "Config and Utils for Desktop"; }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ vscodium brave mission-center nixfmt-rfc-style easyeffects #also need easy effects presets https://github.com/JackHack96/EasyEffects-Presets plexamp ]; programs = { chromium = { enable = true; extensions = [ "jplnlifepflhkbkgonidnobkakhmpnmh" # PIA "nngceckbapebfimnlniiiahkandclblb" # Bitwarden "hlkenndednhfkekhgcdicdfddnkalmdm" # Cookie Editor ]; initialPrefs = { "brave_vpn": { "show_button": false }, "sidebar": { "hidden_built_in_items": [ 7, 1, 2 ], "last_used_built_in_item_type": 3 }, "ai_chat": { "autocomplete_provider_enabled": false, "context_menu_enabled": false, "show_toolbar_button": false }, "new_tab_page": { "hide_all_widgets": true, "show_branded_background_image": false, "show_brave_news": false, "show_clock": true }, "rewards": { "show_brave_rewards_button_in_location_bar": false }, "wallet": { "show_wallet_icon_on_toolbar": false }, "download": { "prompt_for_download": false } }; }; }; }; }