2023-10-06 11:24:00 +03:00
|
|
|
{
|
|
|
|
pkgs,
|
2023-10-06 11:32:22 +03:00
|
|
|
stateVersion,
|
2023-10-06 14:32:52 +03:00
|
|
|
email,
|
2023-10-06 11:24:00 +03:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
home = {
|
2023-10-06 11:32:22 +03:00
|
|
|
inherit stateVersion;
|
2023-10-06 11:24:00 +03:00
|
|
|
|
|
|
|
username = "motiejus";
|
|
|
|
homeDirectory = "/home/motiejus";
|
|
|
|
};
|
|
|
|
|
|
|
|
#home.packages = lib.mkIf cfg.devEnvironment [pkgs.go];
|
|
|
|
|
|
|
|
programs.direnv.enable = true;
|
|
|
|
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
fugitive
|
|
|
|
];
|
|
|
|
extraConfig = builtins.readFile ./vimrc;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2023-10-06 14:32:52 +03:00
|
|
|
userEmail = email;
|
2023-10-06 11:24:00 +03:00
|
|
|
userName = "Motiejus Jakštys";
|
|
|
|
aliases.yolo = "commit --amend --no-edit -a";
|
|
|
|
extraConfig = {
|
|
|
|
rerere.enabled = true;
|
|
|
|
pull.ff = "only";
|
|
|
|
merge.conflictstyle = "diff3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
mutableKeys = false;
|
|
|
|
mutableTrust = false;
|
|
|
|
publicKeys = [
|
|
|
|
{
|
|
|
|
source = ./motiejus-gpg.txt;
|
|
|
|
trust = "ultimate";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|