mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-11-29 20:08:49 +00:00
Some checks failed
Nix: validate flake.lock / Check Lockfile (push) Has been cancelled
Nix: validate flake / Validate x86_64-linux (push) Has been cancelled
Trufflehog: check for exposed secrets / Run trufflehog (push) Has been cancelled
Nix: check for unused code / Run deadnix (push) Has been cancelled
29 lines
486 B
Nix
29 lines
486 B
Nix
{
|
|
osConfig,
|
|
config,
|
|
self,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
inherit (self) namespace;
|
|
|
|
cfg = config.${namespace}.cli.direnv;
|
|
in
|
|
{
|
|
|
|
options.${namespace}.cli.direnv = {
|
|
enable = mkEnableOption "enable direnv support";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
|
|
enableFishIntegration = mkIf (osConfig.${namespace}.users.defaultUserShell == pkgs.fish);
|
|
};
|
|
};
|
|
}
|