Add direnv and remove some unused stuff
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

This commit is contained in:
Jo 2025-10-15 11:07:39 +02:00
parent 92c9d47900
commit fad807fb47
9 changed files with 74 additions and 144 deletions

View file

@ -0,0 +1,29 @@
{
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);
};
};
}

View file

@ -65,7 +65,7 @@ in
};
};
wallpaper =
mkOpt path ../wallpapers/scenic-landscape-blurred.jpg
mkOpt path ../wallpapers/building_top_sit_dusk.jpg
"Specify the path of your prefered Gnome wallpaper.";
};