hermes: Use direnv module from NixOS instead of home-manager
This commit is contained in:
parent
1a2983e55e
commit
a68c001f0e
3 changed files with 16 additions and 22 deletions
|
@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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; [
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue