-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
67 lines (60 loc) · 2.05 KB
/
home.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{ config, pkgs, ... }:
{
home.username = "pn";
home.homeDirectory = "/home/pn";
programs.brave = {
enable = false;
package = pkgs.brave.overrideAttrs (oldAttrs: {
commandLineArgs = [
"--profile-directory=${config.home.homeDirectory}/.config/BraveSoftware/Brave-Browser/Default"
];
});
extensions = [
{ id = "fjcldmjmjhkklehbacihaiopjklihlgg"; }
];
};
xdg.userDirs = {
enable = true;
documents = "${config.home.homeDirectory}/docs";
download = "${config.home.homeDirectory}/dwn";
music = "${config.home.homeDirectory}/music";
pictures = "${config.home.homeDirectory}/pics";
videos = "${config.home.homeDirectory}/vids";
templates = "${config.home.homeDirectory}/templates";
};
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "Patryk Niedźwiedziński";
userEmail = "[email protected]";
signing = {
key = "[email protected]";
signByDefault = true;
};
aliases = {
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative";
};
extraConfig = {
url."ssh://[email protected]/".insteadOf = "https://github.com/";
url."ssh://[email protected]/pniedzwiedzinski/".insteadOf = "pn:";
url."ssh://[email protected]/".insteadOf = "https://gitlab.com/";
url."ssh://[email protected]/".insteadOf = "https://bitbucket.org/";
sendemail = {
smtpserver = "${pkgs.msmtp}/bin/msmtp";
smtpserveroption = [
"-a"
];
};
};
};
# 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 can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "24.05";
}