{ pkgs, config, lib, inputs, ... }: with lib; let cfg = config.eboskma.users.erwin; in { home-manager.users.erwin = { _module.args.flake-inputs = inputs; eboskma = { programs = { alacritty.enable = true; atuin.enable = true; bat.enable = true; fish.enable = true; git = { enable = true; package = pkgs.git; name = "Erwin Boskma"; email = "erwin@datarift.nl"; # signingKey = "EE7ADEFE1D943C7B"; signingKey = "~/.ssh/id_ed25519"; signingKeyFormat = "ssh"; }; gpg.enable = true; i3.enable = true; neovim.enable = true; nushell.enable = true; polybar = { enable = true; }; rofi = { enable = true; terminal = config.home-manager.users.erwin.xsession.windowManager.i3.config.terminal; }; ssh.enable = true; starship.enable = true; }; }; home = { username = "erwin"; homeDirectory = "/home/erwin"; sessionVariables = { EDITOR = "${pkgs.neovim}/bin/neovim"; }; stateVersion = "23.05"; packages = with pkgs; [ atool bottom falkon fd gnome.nautilus imagemagick imv iotop libnotify mpv nordzy-cursor-theme quintom-cursor-theme procs ripgrep units unzip xdg-utils wl-clipboard zeal ]; }; xdg = { enable = true; mime.enable = true; mimeApps = { enable = true; defaultApplications = { "x-scheme-handler/http" = "firefox.desktop"; "x-scheme-handler/https" = "firefox.desktop"; "x-scheme-handler/chrome" = "firefox.desktop"; "x-scheme-handler/terminal" = "${cfg.terminal}.desktop"; "text/html" = "firefox.desktop"; "application/x-extension-htm" = "firefox.desktop"; "application/x-extension-html" = "firefox.desktop"; "application/x-extension-shtml" = "firefox.desktop"; "application/xhtml+xml" = "firefox.desktop"; "application/x-extension-xhtml" = "firefox.desktop"; "application/x-extension-xht" = "firefox.desktop"; "application/pdf" = "org.pwmt.zathura-pdf-mupdf.desktop"; }; associations = { added = { "image/jpeg" = "imv.desktop"; "image/png" = "imv.desktop"; "image/gif" = "imv.desktop"; "application/zip" = "org.gnome.FileRoller.desktop"; }; }; }; userDirs = { enable = true; createDirectories = true; }; }; i18n.inputMethod = { enabled = "fcitx5"; fcitx5.addons = with pkgs; [ fcitx5-m17n fcitx5-gtk fcitx5-configtool ]; }; gtk = { enable = true; theme = { name = "Arc-Dark"; package = pkgs.arc-theme; }; iconTheme = { name = "Papirus-Dark"; package = pkgs.papirus-icon-theme; }; gtk3 = { bookmarks = [ "file:///home/erwin/workspace" ]; extraConfig = { gtk-application-prefer-dark-theme = 1; gtk-cursor-theme-name = "Nordzy-cursors"; }; }; gtk4.extraConfig = { gtk-application-prefer-dark-theme = 1; gtk-cursor-theme-name = "Nordzy-cursors"; }; }; programs = { home-manager.enable = true; command-not-found.enable = true; }; imports = [ ../../modules/options inputs.anyrun.homeManagerModules.default ] ++ (map (mod: (../../home-manager/modules + "/${mod}")) ( builtins.attrNames (builtins.readDir ../../home-manager/modules) )); }; programs.bandwhich.enable = true; }