{ lib, config, pkgs, inputs, ... }: let cfg = config.myConfig.programs; in { imports = [./foot.nix ./thunderbird.nix ./nextcloud.nix ./udiskie.nix ./wezterm.nix ./rclone.nix]; options.myConfig.programs = { enable = lib.mkEnableOption "programs for desktop use"; }; config = lib.mkIf cfg.enable { myConfig.programs = { foot.enable = lib.mkDefault true; wezterm.enable = lib.mkDefault true; thunderbird.enable = lib.mkDefault true; rclone.enable = lib.mkDefault true; udiskie.enable = lib.mkDefault true; }; home.packages = with pkgs; [ (inputs.wrapper-manager.lib.wrapWith pkgs { basePackage = element-desktop; prependFlags = ["--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer" "--ozone-platform=wayland"]; }) (inputs.wrapper-manager.lib.wrapWith pkgs { basePackage = discord; prependFlags = ["--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer" "--ozone-platform=wayland"]; }) (inputs.wrapper-manager.lib.wrapWith pkgs { basePackage = obsidian; prependFlags = ["--enable-features=UseOzonePlatform" "--ozone-platform=wayland"]; }) unzip firefox xournalpp prismlauncher steam blender betaflight-configurator loudgain yt-dlp dconf distrobox libqalculate sops pwvucontrol qpwgraph libreoffice-fresh mate.caja mate.atril mpv gimp freecad wine prusa-slicer kicad chromium wl-clipboard gimp godot_4 ripgrep-all flatpak marksman alejandra ]; }; }