nixos-config/machines/thor/home.nix

158 lines
3.8 KiB
Nix

{
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 = false;
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_sk_personal.pub";
signingKeyFormat = "ssh";
};
gpg.enable = true;
i3.enable = false;
neovim.enable = true;
nushell.enable = false;
polybar = {
enable = false;
};
rofi = {
enable = false;
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 = "24.11";
packages = with pkgs; [
atool
bottom
fd
imagemagick
imv
iotop
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 = false;
# 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;
}