~ruther/nixos-config

ref: 6904cf1761334d033556f106c82d79b48e6657f4 nixos-config/home/modules/profiles/development/default.nix -rw-r--r-- 685 bytes
6904cf17 — Frantisek Bohacek refactor: modularize the configuration 1 year, 1 day 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
{ 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 = {
            user = {
              email = "rutherther@proton.me";
              name = "Rutherther";
            };
            init = {
              defaultBranch = "main";
            };
          };
        }];
      };
    };
  };
}
Do not follow this link