{ inputs, theme, ... }: {
  imports = [
    inputs.plasma-manager.homeManagerModules.plasma-manager
    ../../../../stylix/themes/${theme}/home-manager/plasma6.nix
    ./plasma-manager.nix
  ];

  programs.bash.sessionVariables = { 
    DISABLE_TMUX = "true";
    GTK_THEME  = "Breeze"; # To set the firefox theme
  };
  programs.fish.shellInit = ''
    set DISABLE_TMUX "true"
  '';
  
  # Add the Firefox integrations
  # Sep 22 2024 - disabled.  kills nightride.fm for some reason?!?!?!
  # programs.firefox.profiles.default.extensions =  with pkgs.nur.repos.rycee.firefox-addons; [
  #   plasma-integration
  # ];

  services.darkman = {
    enable = true;
    darkModeScripts = {
      apply-colorscheme-dark = ''
        /run/current-system/sw/bin/plasma-apply-colorscheme ArcDark
      '';
    };
    lightModeScripts = {
      apply-colorscheme-light = ''
        /run/current-system/sw/bin/plasma-apply-colorscheme Arc
      '';
    };
    settings = {
      dbusserver = true;
      usegeoclue = true;
    };
  };
}