{ pkgs, globalInputs, system, ... }:

{
  # Home Manager configuration for live USB environments
  # Minimal setup without persistent services
  
  home.username = "nixos";
  home.homeDirectory = "/home/nixos";
  home.stateVersion = "24.05";

  # Enable minimal roles only (no sync or kdeconnect for live environment)
  home.roles = {
    base.enable = true;
    desktop.enable = true;
    tmux.enable = true;
    plasma-manager.enable = true;
    emacs = {
      enable = true;
      # Use pre-built Doom Emacs - all packages built at nix build time
      # This means no doom sync is needed after booting the live USB
      prebuiltDoom = true;
    };
    i3_sway.enable = true;
    starship.enable = true;
    # development.enable = false;  # Not needed for live USB
    # communication.enable = false; # Not needed for live USB
    # office.enable = false;       # Not needed for live USB
    # media.enable = false;        # Not needed for live USB
    # sync.enable = false;         # No persistent sync on live USB
    # kdeconnect.enable = false;   # No device integration on live USB
  };

  targets.genericLinux.enable = true;
  home.sessionVariables = {};
  home.sessionPath = [];

  imports = [
    ./roles
    ./roles/base-linux
  ];

  # Live USB specific overrides can go here if needed
}