~ruther/nixos-config

ref: ba9b39c32c6c3da5957047a3dcb160db2816154b nixos-config/home/modules/profiles/development/default.nix -rw-r--r-- 762 bytes
ba9b39c3 — Frantisek Bohacek feat: git set editor to emacs waiting for the window to close 11 months ago
                                                                                
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
{ config, lib, ... }:

{
  options = {
    profiles.development = {
      enable = lib.mkEnableOption "Enable development profile (emacs, nvim)";
    };
  };

  imports = [
    ./emacs
    ./nvim.nix
  ];

  config = lib.mkIf config.profiles.development.enable {
    programs = {
      direnv = {
        enable = true;
        nix-direnv.enable = true;
      };

      git = {
        enable = true;
        includes = [{
          contents = {
            core = {
              editor = "emacsclient -c";
            };
            user = {
              email = "rutherther@proton.me";
              name = "Rutherther";
            };
            init = {
              defaultBranch = "main";
            };
          };
        }];
      };
    };
  };
}
Do not follow this link