mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 02:40:14 +00:00
initial refactoring
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.programs.direnv;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.presets.programs.direnv.enable = lib.mkEnableOption "Direnv project-level shells";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Enables quickly entering Nix shells when changing directories
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
config = {
|
||||
whitelist = {
|
||||
prefix = [ config.nmasur.dotfilesPath ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user