{ pkgs, hostsPath, usersPath, ... }:

let
  homeData = import (hostsPath + "/home/data.secret.nix");
  asusData = import (hostsPath + "/asus-gl553vd/data.secret.nix");
in
{
  imports = [ (usersPath + "/jan") ];

  home-manager.users.jan = {
    local.window-manager = {
      xmonad.projects = import ./xmonad-projects.secret.nix;
    };

    local.services.lan-mouse.settings = {
      port = homeData.lan-mouse.port;
      connections.left = {
        hostname = "asus";
        ips = [ asusData.addr ];
        port = asusData.lan-mouse.port;
      };
    };

    # local.programs.editors.arduino-ide.enable = true;

    local.programs.dev-tools.k8s.enable = true;

    local.programs.libreoffice = {
      enable = true;
      spellCheckDicts = with pkgs.hunspellDicts; [
        ru_RU
        en_US
      ];
    };

    local.games.endless-sky.enable = true;

    # Extra packages
    home.packages = with pkgs.unstable; [
      ## game dev
      # blender-hip
      # godot_4
      # libresprite

      pkgs.apache-directory-studio

      ## 3d printer
      # Cannot build unstable Cura!
      # See: https://github.com/NixOS/nixpkgs/issues/325896
      # it's too old in the nixpkgs!
      # See: https://github.com/NixOS/nixpkgs/issues/186570
      # pkgs.cura

      ## electronics
      # kicad-small
      # librepcb

      ## tools
      bind.dnsutils

      ## remote desktop client
      # remmina
    ];
  };
}