{
  pkgs,
  config,
  inputs,
  ...
}:
let
  inherit (config.modules.meta) username;
in
{
  imports = [
    ../../modules/home-manager.nix
    inputs.home-manager.nixosModules.home-manager
  ];

  home-manager.users.${username} = {
    imports = [
      ../../home/themes/catppuccin.nix
      ../../home
    ];

    programs = {
      direnv = {
        enable = true;
        nix-direnv.enable = true;
      };

      waybar.enable = true;
      ssh.enable = true;
      rofi.enable = true;
    };

    services = {
      blueman-applet.enable = true;
      syncthing.enable = true;
    };

    home = {
      stateVersion = config.system.stateVersion;
      inherit username;

      packages = with pkgs; [
        keepassxc
        digikam
        fragments
        element-desktop
        libreoffice
        loupe
        seahorse
        gimp
        pwvucontrol
        thunderbird
        keepassxc
        protonmail-bridge-gui
        varia
        signal-desktop
        tagger
        prismlauncher
        orca-slicer

        kid3
        soundconverter

        # proprietary
        obsidian

        # CLI tools
        jhead
        fdupes
        exiftool
        sshfs
        lazygit
        wl-clipboard

        # custom
        nysh
        scripts.nixedit
        scripts.set-background
        scripts.fishl
        scripts.nrun
        scripts.rpaste
        scripts.genswitch
        scripts.gentest
        scripts.editsym
        scripts.deployswitch
        scripts.deploytest
      ];
    };
  };
}
