oizys/modules/environment.nix
2023-01-17 03:43:58 -06:00

21 lines
425 B
Nix

{ lib, config, pkgs, ... }:
{
# for compatibility add zsh to list of /etc/shells
environment.shells = with pkgs; [ zsh ];
environment.etc = {
issue.source = ./etc/issue;
};
environment.variables = {
NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
stdenv.cc.cc
openssl
zlib # for delta
];
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
};
}