{ lib, pkgs, ... }: let username = "henrov"; # vervang door je echte gebruikersnaam in { flake.nixosModules.thunar = { config, pkgs, lib, ... }: { options.mySystem.apps.thunar.enable = lib.mkEnableOption "Enable Thunar file manager"; config = lib.mkIf (config.mySystem.apps.thunar.enable or false) { # --- Home Manager gebruiker --- home-manager.users.${username} = { home.stateVersion = "25.11"; home.username = username; home.homeDirectory = "/home/${username}"; # --- Thunar en plugins --- home.packages = with pkgs; [ thunar thunar-volman thunar-archive-plugin thunar-media-tags-plugin tumbler ffmpegthumbnailer gvfs xdg-utils ]; # --- Default file manager --- xdg.mimeApps = { defaultApplications = { "inode/directory" = "Thunar.desktop"; }; }; }; }; }; }