- All base/* modules now use (mkEnableOption "...") // { default = true; }
so they activate automatically when imported — no explicit .enable = true
required in host configs
- packages.nix: add comment documenting that lazylib does not exist in
nixpkgs; lazygit is the correct and intended package
- zellij-ps.nix: clarify that cli.zellij-ps namespace is intentional —
it is the home-manager module convention from m3ta-nixpkgs
- nix flake check passes (warnings are pre-existing)
21 lines
482 B
Nix
21 lines
482 B
Nix
# Direnv — automatic environment loading with nix-direnv integration.
|
|
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.base.cliTools.direnv;
|
|
in {
|
|
# Enabled by default — base modules are always-on.
|
|
options.base.cliTools.direnv.enable = (mkEnableOption "enable direnv with nix-direnv") // {default = true;};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.direnv = {
|
|
enable = true;
|
|
enableNushellIntegration = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
};
|
|
}
|