Bruno BELANYI
1a492c6eb8
And enable the flakes option. I don't actually use this on my own projects, but it could be useful for other projects that I contribute to.
20 lines
363 B
Nix
20 lines
363 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.my.home.direnv;
|
|
in
|
|
{
|
|
options.my.home.direnv = with lib.my; {
|
|
enable = mkDisableOption "direnv configuration";
|
|
};
|
|
|
|
config.programs.direnv = lib.mkIf cfg.enable {
|
|
enable = true;
|
|
nix-direnv = {
|
|
# A better `use_nix`
|
|
enable = true;
|
|
# And `use_flake`
|
|
enableFlakes = true;
|
|
};
|
|
};
|
|
}
|