{ ... }: {
  flake.homeManagerModules.wisdomFilebrowsersNemo =
    { config, lib, pkgs, ... }:
    let
      root = config.chiasson.home;
      cfg = root.filebrowsers.nemo;
    in
    {
      options.chiasson.home.filebrowsers.nemo.enable = lib.mkEnableOption ''
        Nemo file manager (GTK). Colors come from DMS matugen via GTK settings — no KDE/Qt bridge needed.
      '';

      config = lib.mkIf (root.enable && cfg.enable) {
        home.packages = [pkgs.nemo];

        xdg.mimeApps = {
          enable = lib.mkDefault true;
          defaultApplications = {
            "inode/directory" = lib.mkDefault "nemo.desktop";
          };
        };
      };
    };
}
