nixos-config/home-manager/default.nix

40 lines
828 B
Nix
Raw Normal View History

2024-02-13 15:13:46 -05:00
{ config, pkgs, username, fullname, email, ... }:
2022-01-06 21:14:02 -05:00
{
home.username = username;
home.homeDirectory = "/home/" + username;
2022-09-24 23:30:38 -04:00
home.stateVersion = "21.11";
2024-02-13 15:30:26 -05:00
imports = [ ./shell ./wayland ./password.nix ./email.nix ];
2022-01-06 21:14:02 -05:00
xdg.enable = true;
xdg.userDirs.enable = true;
programs.git = {
enable = true;
2022-10-26 15:54:00 -04:00
userName = fullname;
2024-02-13 15:13:46 -05:00
userEmail = email;
2022-01-11 20:52:14 -05:00
2023-10-27 15:05:12 -04:00
signing.key = "6CB106C25E86A9F7";
signing.signByDefault = true;
2022-03-12 20:46:41 -05:00
extraConfig = {
credential.helper = "store";
git.allowForcePush = true;
2023-10-27 15:05:12 -04:00
push.followTags = true;
2022-03-12 20:46:41 -05:00
init.defaultBranch = "main";
2023-10-27 15:05:12 -04:00
};
delta.enable = true;
delta.options = {
features = "decorations";
relative-paths = true;
2022-04-29 17:38:23 -04:00
2023-10-27 15:05:12 -04:00
decorations = {
file-style = "yellow";
hunk-header-style = "line-number syntax";
};
2022-03-12 20:46:41 -05:00
};
2022-01-06 21:14:02 -05:00
};
}