0
0
Fork 0
flake/home/modules/cli/development.nix

91 lines
1.7 KiB
Nix

{
pkgs,
...
}: {
programs.git = {
enable = true;
package =
if pkgs.stdenv.hostPlatform.system == "x86_64-linux"
then pkgs.gitAndTools.gitFull
else pkgs.git;
userEmail = "relms@relms.dev";
userName = "Daryl Ronningen";
delta = {
enable = true;
options = {
navigate = true;
light = false;
line-numbers = true;
side-by-side = true;
};
};
lfs = {
enable = true;
};
extraConfig = {
init = {
defaultBranch = "master";
};
pull = {
rebase = false;
};
credential = {
helper = "store";
};
core = {
editor = "nvim";
};
color = {
ui = "auto";
};
diff = {
colorMoved = "default";
};
tag = {
forceSignAnnotated = true;
};
pack = {
writeReversedIndex = true;
};
};
signing = {
signByDefault = true;
key = "3905311D17C0E1E8AD2B3439FD23F0C934A5EC6B";
};
};
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
programs.lazygit = {
enable = true;
settings = {
gui.theme.lightTheme = false;
};
};
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
enableFishIntegration = true;
enableScDaemon = true;
enableSshSupport = true;
pinentryPackage =
if pkgs.stdenv.hostPlatform.system == "x86_64-linux"
then pkgs.pinentry-rofi
else pkgs.pinentry_mac;
};
catppuccin = {
delta = {
enable = true;
flavor = "mocha";
};
lazygit = {
enable = true;
flavor = "mocha";
accent = "pink";
};
};
}