hermes: Use direnv module from NixOS instead of home-manager

This commit is contained in:
Payas Relekar 2023-07-14 22:59:15 +05:30
parent 1a2983e55e
commit a68c001f0e
3 changed files with 16 additions and 22 deletions

View file

@ -39,17 +39,21 @@
}; };
}; };
programs.nix-ld = { programs = {
enable = true; direnv.enable = true;
libraries = with pkgs; [
# stdenv.cc.cc nix-ld = {
zlib enable = true;
fuse3 libraries = with pkgs; [
icu # stdenv.cc.cc
nss zlib
openssl fuse3
curl icu
expat nss
]; openssl
curl
expat
];
};
}; };
} }

View file

@ -51,13 +51,6 @@ in
treesit-grammars.with-all-grammars treesit-grammars.with-all-grammars
]; ];
}; };
direnv = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
nix-direnv.enable = true;
};
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -1,11 +1,8 @@
{ config, lib, options, pkgs, ... }: { config, lib, options, pkgs, ... }:
{ {
nix = { nix = {
# Enable Flakes systemwide, and set gc-roots for nix-direnv
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes ca-derivations experimental-features = nix-command flakes ca-derivations
keep-outputs = true
keep-derivations = true
''; '';
# Automated gabrage collection # Automated gabrage collection