Add all of iogamaster modules
This commit is contained in:
28
modules/nixos/apps/tools/direnv/default.nix
Normal file
28
modules/nixos/apps/tools/direnv/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.frajul; let
|
||||
cfg = config.apps.tools.direnv;
|
||||
in {
|
||||
options.apps.tools.direnv = with types; {
|
||||
enable = mkBoolOpt false "Enable direnv";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables.DIRENV_LOG_FORMAT = ""; # Blank so direnv will shut up
|
||||
|
||||
home.persist.directories = [
|
||||
".local/share/direnv"
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user