.hive/home/jonas/home.nix
2024-04-17 16:47:06 +02:00

101 lines
2.2 KiB
Nix

{
config,
pkgs,
...
}: {
imports = [
./firefox.nix
./plasma.nix
./yubikey.nix
];
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "jonas";
home.homeDirectory = "/home/jonas";
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
};
};
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "23.11"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
chromium
firefox
fzf
nil
nixpkgs-fmt
poetry
thefuck
vim
vscode
];
home.sessionVariables = {
EDITOR = "vim";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Git
programs.git = {
enable = true;
userName = "Jonas Röger";
userEmail = "jonas.roeger@tu-dortmund.de";
difftastic.enable = true;
signing = {
signByDefault = true;
key = "4000EB35E1AE0F07";
};
};
# Zsh
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
shellAliases = {
ll = "ls -l";
update = "sudo nixos-rebuild switch";
};
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [
"docker"
"docker-compose"
"emacs"
"fzf"
"git"
"pass"
"poetry"
"python"
"rust"
"thefuck"
];
theme = "bureau";
};
};
}