Add .zshenv content into Nix

This commit is contained in:
Natsu Kagami 2021-12-08 14:21:58 -05:00
parent fbc5dacf06
commit 93b314ecd7
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 71 additions and 6 deletions

View file

@ -1,8 +1,8 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports = [ ./common.nix ];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
@ -13,12 +13,51 @@
# Additional packages to be used only on this MacBook.
home.packages = with pkgs; [
pkgs.x86.anki-bin
pkgs.x86.anki-bin
];
# Additional settings for programs
programs.fish.shellAliases = {
brew64 = "arch -x86_64 /usr/local/bin/brew";
brew64 = "arch -x86_64 /usr/local/bin/brew";
};
home.sessionPath = [
# Personal .bin
"$HOME/.bin"
"$HOME/.local/bin"
# Rust
"$HOME/.cargo/bin"
# Haskell
"$HOME/.ghcup/bin"
"$HOME/.cabal/bin"
# Go
"$HOME/go/bin"
# Node.js
"$HOME/.local/opt/node/bin"
# Ruby
"$HOME/.gem/bin"
"$HOME/.gem/ruby/2.7.0/bin"
];
home.sessionVariables = {
VISUAL = "$EDITOR";
# Other C++ stuff
LIBRARY_PATH = lib.concatStringsSep ":" [
"$LIBRARY_PATH"
"$HOME/.local/share/lib"
];
CPATH = lib.concatStringsSep ":" [
"$CPATH"
"$HOME/.local/share/include"
];
# Ruby
GEM_HOME = "$HOME/.gem";
# .NET
DOTNET_CLI_TELEMETRY_OPTOUT = "true";
};
# This value determines the Home Manager release that your