2023-09-24 13:50:50 +00:00
|
|
|
{ pkgs, ... }@args:
|
|
|
|
let
|
|
|
|
nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; };
|
|
|
|
in
|
2023-09-24 12:57:48 +00:00
|
|
|
{
|
|
|
|
home = {
|
|
|
|
username = "pim";
|
|
|
|
homeDirectory = "/home/pim";
|
2023-09-24 13:50:50 +00:00
|
|
|
stateVersion = "23.05";
|
2023-09-24 12:57:48 +00:00
|
|
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
keepassxc
|
|
|
|
nil
|
|
|
|
moonlight-qt
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
2023-09-24 14:10:19 +00:00
|
|
|
|
2023-09-24 12:57:48 +00:00
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
nvim-lspconfig
|
|
|
|
gruvbox-nvim
|
|
|
|
leap-nvim
|
|
|
|
telescope-nvim
|
|
|
|
vim-commentary
|
2023-09-24 14:15:22 +00:00
|
|
|
vim-sleuth
|
2023-09-24 14:18:58 +00:00
|
|
|
gitsigns-nvim
|
2023-09-24 12:57:48 +00:00
|
|
|
];
|
|
|
|
extraLuaConfig = builtins.readFile ./neovim.lua;
|
|
|
|
};
|
2023-09-24 14:10:19 +00:00
|
|
|
|
2023-09-24 12:57:48 +00:00
|
|
|
alacritty = {
|
|
|
|
enable = true;
|
|
|
|
settings = (import ./alacritty.nix);
|
|
|
|
};
|
|
|
|
|
|
|
|
firefox = {
|
|
|
|
enable = true;
|
|
|
|
profiles.default = {
|
|
|
|
id = 0;
|
|
|
|
isDefault = true;
|
|
|
|
settings = {
|
|
|
|
"browser.aboutConfig.showWarning" = false;
|
2023-09-24 14:04:41 +00:00
|
|
|
"browser.toolbars.bookmarks.visibility" = "always";
|
2023-09-24 12:57:48 +00:00
|
|
|
};
|
2023-09-24 13:50:50 +00:00
|
|
|
extensions = import ./firefox-addons (args // {inherit nurpkgs; });
|
2023-09-24 12:57:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bash = {
|
|
|
|
enable = true;
|
|
|
|
shellAliases = {
|
|
|
|
htop = "btop";
|
|
|
|
gp = "git push";
|
|
|
|
gco = "git checkout";
|
|
|
|
gd = "git diff";
|
|
|
|
gc = "git commit";
|
|
|
|
gpl = "git pull";
|
|
|
|
gb = "git branch";
|
|
|
|
ga = "git add";
|
|
|
|
gl = "git log";
|
2023-09-24 13:04:17 +00:00
|
|
|
gs = "git status";
|
2023-09-24 12:57:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Pim Kunis";
|
|
|
|
userEmail = "pim@kunis.nl";
|
2023-09-24 14:04:41 +00:00
|
|
|
extraConfig = {
|
|
|
|
core.editor = "nvim";
|
|
|
|
push.autoSetupRemote = true;
|
|
|
|
};
|
2023-09-24 12:57:48 +00:00
|
|
|
};
|
2023-09-24 14:10:19 +00:00
|
|
|
|
|
|
|
fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
};
|
2023-09-24 12:57:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Let home-manager manage the X session
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# xdg.configFile."keepassxc/keepassxc.ini".text = pkgs.lib.generators.toINI {} (import ./keepassxc.nix);
|
|
|
|
}
|