direnv: remove

This commit is contained in:
2026-02-04 08:12:11 +01:00
parent 44e8ada47b
commit b0230b0f36
2 changed files with 0 additions and 43 deletions

View File

@@ -31,7 +31,6 @@
niri = modules/niri; niri = modules/niri;
bash = modules/bash.nix; bash = modules/bash.nix;
nix = modules/nix.nix; nix = modules/nix.nix;
direnv = modules/direnv.nix;
tools = modules/tool.nix; tools = modules/tool.nix;
}; };

View File

@@ -1,42 +0,0 @@
{ pkgs, ... }:
let
nixify = pkgs.writers.writeDashBin "nixify" ''
set -efuC
if [ ! -e ./.envrc ]; then
echo use_nix > .envrc
direnv allow
fi
if [ ! -e shell.nix ]; then
cat > shell.nix <<'EOF'
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = [];
}
EOF
''${EDITOR:-vim} shell.nix
fi
'';
in
{
environment.systemPackages = [
pkgs.direnv
nixify
];
home-manager.users.me.programs.direnv = {
enable = true;
stdlib = builtins.readFile "${
pkgs.fetchFromGitHub {
owner = "Mic92";
repo = "dotfiles";
rev = "a0a9b7e358fa70a85cd468f8ca1fbb02ae0a91df";
sha256 = "1y9h5s1lf59sczsm0ksq2x1yhl98ba9lwk5yil3q53rg7n4574pg";
}
}/home/.direnvrc";
};
programs.zsh.interactiveShellInit = ''
eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
'';
}