blob: ddb7716c91a59a61dfc8bb78ff33c70dbe82cbb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ config, pkgs, lib, ... }:
{
options.tools.devenv = {
enable = lib.mkEnableOption "Enables devenv.";
};
config = let
shellIntegration = builtins.readFile ./alias.sh;
in lib.mkIf config.tools.devenv.enable {
home.packages = with pkgs; [
devenv
];
programs.zsh.initContent = lib.mkIf config.programs.zsh.enable
(lib.mkAfter shellIntegration);
programs.bash.initExtra = lib.mkIf config.programs.bash.enable
(lib.mkAfter shellIntegration);
};
}
|