home: direnv: set 'DIRENV_DEFAULT_FLAKE' as needed
ci/woodpecker/push/check Pipeline was successful Details

This commit is contained in:
Bruno BELANYI 2024-04-15 14:08:00 +00:00
parent b179185782
commit f2b55c8893
1 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ in
enable = my.mkDisableOption "direnv configuration";
defaultFlake = mkOption {
type = types.str;
default = "nixpkgs";
type = with types; nullOr str;
default = null;
example = "pkgs";
description = ''
Which flake from the registry should be used for
@ -39,7 +39,7 @@ in
in
lib.my.genAttrs' files linkLibFile;
home.sessionVariables = {
home.sessionVariables = lib.mkIf (cfg.defaultFlake != null) {
DIRENV_DEFAULT_FLAKE = cfg.defaultFlake;
};
};