nixos-config/machines/thor/home.nix

165 lines
3.8 KiB
Nix
Raw Normal View History

2024-02-05 11:46:52 +01:00
{
pkgs,
config,
lib,
inputs,
...
}:
with lib;
let
2023-05-07 17:00:43 +02:00
cfg = config.eboskma.users.erwin;
in
{
home-manager.users.erwin = {
_module.args.flake-inputs = inputs;
eboskma = {
programs = {
2023-05-28 13:22:28 +02:00
alacritty.enable = true;
2023-05-07 17:00:43 +02:00
atuin.enable = true;
bat.enable = true;
fish.enable = true;
git = {
enable = true;
2023-05-28 13:22:28 +02:00
package = pkgs.git;
2023-05-07 17:00:43 +02:00
name = "Erwin Boskma";
email = "erwin@datarift.nl";
# signingKey = "EE7ADEFE1D943C7B";
signingKey = "~/.ssh/id_ed25519";
signingKeyFormat = "ssh";
};
gpg.enable = true;
2023-05-28 13:22:28 +02:00
i3.enable = true;
2023-05-07 17:00:43 +02:00
neovim.enable = true;
nushell.enable = true;
2023-05-28 13:22:28 +02:00
polybar = {
enable = true;
};
2023-05-07 17:00:43 +02:00
rofi = {
enable = true;
2023-05-28 13:22:28 +02:00
terminal = config.home-manager.users.erwin.xsession.windowManager.i3.config.terminal;
2023-05-07 17:00:43 +02:00
};
ssh.enable = true;
starship.enable = true;
};
};
2023-09-13 14:50:03 +02:00
home = {
username = "erwin";
homeDirectory = "/home/erwin";
sessionVariables = {
EDITOR = "${pkgs.neovim}/bin/neovim";
};
stateVersion = "23.05";
2024-02-05 11:46:52 +01:00
packages = with pkgs; [
atool
bottom
falkon
fd
imagemagick
imv
iotop
libnotify
mpv
nautilus
2024-02-05 11:46:52 +01:00
nordzy-cursor-theme
quintom-cursor-theme
procs
ripgrep
units
unzip
xdg-utils
wl-clipboard
zeal
];
2023-09-13 14:50:03 +02:00
};
2023-05-07 17:00:43 +02:00
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";
2024-02-05 11:46:52 +01:00
fcitx5.addons = with pkgs; [
fcitx5-m17n
fcitx5-gtk
fcitx5-configtool
];
2023-05-07 17:00:43 +02:00
};
gtk = {
enable = true;
theme = {
name = "Arc-Dark";
package = pkgs.arc-theme;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
gtk3 = {
2024-02-05 11:46:52 +01:00
bookmarks = [ "file:///home/erwin/workspace" ];
2023-05-07 17:00:43 +02:00
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";
};
};
2023-09-13 14:50:03 +02:00
programs = {
home-manager.enable = true;
command-not-found.enable = true;
};
2024-02-05 11:46:52 +01:00
imports =
[
../../modules/options
2024-06-08 16:01:48 +02:00
inputs.anyrun.homeManagerModules.default
2024-02-05 11:46:52 +01:00
]
++ (map (mod: (../../home-manager/modules + "/${mod}")) (
builtins.attrNames (builtins.readDir ../../home-manager/modules)
));
2023-05-07 17:00:43 +02:00
};
programs.bandwhich.enable = true;
}