mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 11:56:33 +01:00
18 lines
273 B
Nix
18 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;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|