feat: add direnv integration
This commit is contained in:
parent
c174e61f9d
commit
3c95151c88
1 changed files with 18 additions and 9 deletions
27
flake.nix
27
flake.nix
|
@ -21,10 +21,11 @@
|
||||||
imagePackages =
|
imagePackages =
|
||||||
pkgs: with pkgs; [
|
pkgs: with pkgs; [
|
||||||
bashInteractive
|
bashInteractive
|
||||||
|
bats
|
||||||
cacert
|
cacert
|
||||||
coreutils
|
coreutils
|
||||||
curl
|
curl
|
||||||
podman
|
direnv
|
||||||
findutils
|
findutils
|
||||||
gawk
|
gawk
|
||||||
gitFull
|
gitFull
|
||||||
|
@ -33,20 +34,20 @@
|
||||||
gnutar
|
gnutar
|
||||||
gzip
|
gzip
|
||||||
jq
|
jq
|
||||||
|
lixPackageSets.latest.lix
|
||||||
|
makeWrapper
|
||||||
nodejs
|
nodejs
|
||||||
openssl
|
nvd
|
||||||
openssh
|
openssh
|
||||||
|
openssl
|
||||||
|
podman
|
||||||
|
reuse
|
||||||
rsync
|
rsync
|
||||||
|
shellcheck
|
||||||
|
sops
|
||||||
sudo
|
sudo
|
||||||
wget
|
wget
|
||||||
xz
|
xz
|
||||||
makeWrapper
|
|
||||||
bats
|
|
||||||
shellcheck
|
|
||||||
reuse
|
|
||||||
lix
|
|
||||||
sops
|
|
||||||
nvd
|
|
||||||
];
|
];
|
||||||
containerLambda =
|
containerLambda =
|
||||||
name: tag: pkgs':
|
name: tag: pkgs':
|
||||||
|
@ -192,6 +193,14 @@
|
||||||
"trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(writeTextFile {
|
||||||
|
name = "bashrc";
|
||||||
|
destination = "/etc/bashrc";
|
||||||
|
text = builtins.concatStringsSep "\n" [
|
||||||
|
"eval \"$(${pkgs.lib.getExe direnv} hook bash)\""
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
extraCommands = builtins.concatStringsSep "\n" [
|
extraCommands = builtins.concatStringsSep "\n" [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue