blob: a7afb69446117233f1c4c8f615086bc5f93ade9e (
plain)
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
|
{ pkgs, ... }:
let
# a small useful script with common nix+nixos commands, invoked with `nx`
nx-script = pkgs.writeShellScriptBin "nx" (builtins.readFile ../../scripts/nx.sh);
in
{
imports = [
../foundation/home
./shell.nix # shell settings, fish in this case
];
programs = {
git = {
enable = true;
signing = {
key = "D75A C286 ACA7 00B4 D8EC 377D 2082 F8EC 11CC 009B";
signByDefault = true;
};
ignores = [
# ignore most vim swap-files
"*~"
"[._]*.sw?"
];
settings = {
user = {
name = "Mel";
email = "mel@rnrd.eu";
};
alias = {
"skip" = "update-index --skip-worktree";
"unskip" = "update-index --no-skip-worktree";
};
init.defaultBranch = "main";
pull.rebase = true;
};
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
};
home.packages = [
nx-script
];
}
|