mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:48:11 +09:00
17 lines
308 B
Nix
17 lines
308 B
Nix
{ lib, config, ... }:
|
|
let
|
|
cfg = config.my.applications.direnv;
|
|
in
|
|
{
|
|
options.my.applications.direnv = {
|
|
enable = lib.mkEnableOption "direnv environment variable manager";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
};
|
|
}
|