Add .zshenv
content into Nix
This commit is contained in:
parent
fbc5dacf06
commit
93b314ecd7
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -28,11 +28,37 @@
|
||||||
## Programs
|
## Programs
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
## Erase editor variables
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
EDITOR = ""; # don't set it by default
|
EDITOR = ""; # don't set it by default
|
||||||
|
|
||||||
|
# Homebrew stuff
|
||||||
|
# LLVM!
|
||||||
|
# To use the bundled libc++ please add the following LDFLAGS:
|
||||||
|
LDFLAGS = lib.concatStringsSep " " [
|
||||||
|
"-L/opt/homebrew/opt/llvm/lib"
|
||||||
|
"-Wl,-rpath,/opt/homebrew/opt/llvm/lib"
|
||||||
|
"-L/opt/homebrew/opt/llvm/lib"
|
||||||
|
"$LDFLAGS"
|
||||||
|
];
|
||||||
|
CPPFLAGS = "-I/opt/homebrew/opt/llvm/include $CPPFLAGS";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPath = lib.mkBefore [
|
||||||
|
# Missing from MacOS
|
||||||
|
"/usr/local/bin"
|
||||||
|
# LaTeX
|
||||||
|
"/usr/local/texlive/2021/bin/universal-darwin"
|
||||||
|
# Go
|
||||||
|
"/usr/local/go/bin"
|
||||||
|
# Ruby
|
||||||
|
"/opt/homebrew/opt/ruby@2.7/bin"
|
||||||
|
# .NET
|
||||||
|
"/usr/local/share/dotnet"
|
||||||
|
# LLVM!
|
||||||
|
"/opt/homebrew/opt/llvm/bin"
|
||||||
|
];
|
||||||
|
|
||||||
# Used for backwards compatibility, please read the changelog before changing.
|
# Used for backwards compatibility, please read the changelog before changing.
|
||||||
# $ darwin-rebuild changelog
|
# $ darwin-rebuild changelog
|
||||||
system.stateVersion = 4;
|
system.stateVersion = 4;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./common.nix ];
|
imports = [ ./common.nix ];
|
||||||
|
@ -13,12 +13,51 @@
|
||||||
|
|
||||||
# Additional packages to be used only on this MacBook.
|
# Additional packages to be used only on this MacBook.
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pkgs.x86.anki-bin
|
pkgs.x86.anki-bin
|
||||||
];
|
];
|
||||||
|
|
||||||
# Additional settings for programs
|
# Additional settings for programs
|
||||||
programs.fish.shellAliases = {
|
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
|
# This value determines the Home Manager release that your
|
||||||
|
|
Loading…
Reference in a new issue