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

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

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

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

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