mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:46:50 +01:00
17 lines
273 B
Nix
17 lines
273 B
Nix
{ config, lib, ... }:
|
|
|
|
let cfg = config.jopejoe1.direnv;
|
|
in {
|
|
options.jopejoe1.direnv = {
|
|
enable = lib.mkEnableOption "Enable direnv";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
};
|
|
}
|
|
|
|
|