direnv: Init
This commit is contained in:
1 parent
4ccbed71a8
commit
5be8612163
4 files changed
+28
-1
No files matched your search
@@ -0,0 +1,19 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ptw.programs.direnv;
|
||||
in {
|
||||
options.ptw.programs.direnv = {
|
||||
enable = lib.mkEnableOption "Enable direnv";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users."${config.ptw.system.singleUser}".programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user