Compare commits

...

4 commits

6 changed files with 36 additions and 8 deletions

View file

@ -13,9 +13,6 @@
++ lib.youthlic.loadImports ./.;
config = {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
youthlic.programs.direnv.enable = true;
};
}

View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
let
cfg = config.youthlic.programs.direnv;
in
{
options = {
youthlic.programs.direnv = {
enable = lib.mkEnableOption "direnv";
};
};
config = lib.mkIf cfg.enable {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
xdg.configFile."direnvrc" = {
target = "direnv/direnvrc";
source = ./direnvrc.sh;
};
};
}

View file

@ -0,0 +1,10 @@
: "${XDG_CACHE_HOME:=$HOME/.cache}"
declare -A direnv_layout_dirs
function direnv_layout_dir() {
local hash path
echo "${direnv_layout_dirs[$PWD]:=$(
hash="$(sha1sum - <<<"$PWD" | head -c40)"
path="${PWD//[^a-zA-Z0-9]/-}"
echo "${XDG_CACHE_HOME}/direnv/layouts/${hash}${path}"
)}"
}

View file

@ -47,7 +47,7 @@ in
echo "" > ''${config}
{
echo 'subscription {'
echo \ \ wget:\ \"file://proxy.d/''${num}.txt\"
echo \ \ wget:\ \"file://proxy.d_''${num}.txt\"
echo "}"
} >> ''${config}
if [[ ! -s ''${txt} ]]; then

View file

@ -4,5 +4,5 @@ let
inherit (prev.stdenv.hostPlatform) system;
in
{
inherit (outputs.packages."${system}") cliphist';
cliphist = outputs.packages."${system}".cliphist';
}

View file

@ -10,7 +10,7 @@
scheme = "https";
}
{
hostname = "ash.radicle.garden";
hostname = "rosa.radicle.xyz";
port = 443;
scheme = "https";
}
@ -20,7 +20,7 @@
scheme = "https";
}
{
hostname = "seed.radicle.garden";
hostname = "iris.radicle.xyz";
port = 443;
scheme = "https";
}