aboutsummaryrefslogtreecommitdiff
path: root/modules/home/suites/dev/default.nix
blob: 21f2aa08fe137b5c22eaae497bd5221f8b0cdd93 (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
{ options, config, lib, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.suites.dev;
  impermanence = config.${namespace}.impermanence;
  desktop = config.${namespace}.desktop;
in {
  options.${namespace}.suites.dev = with types; {
    enable = mkEnableOption "dev";
  };

  config = mkIf cfg.enable {
    home.persistence.${impermanence.location} = {
      directories = [
        "code"
      ];
    };

    cxl = {
      apps = mkIf desktop.enable {
        vscode.enable = true;
        intellij.enable = true;
      };

      tools = {
        cloc.enable = true;
        tmux.enable = true;
        mkenv.enable = true;
      };
    };
  };
}