1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

lnl: add nix aliases

This commit is contained in:
Daiderd Jordan 2018-06-06 23:18:06 +02:00
parent 6f970ca1b0
commit b0a8af6cc9
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -210,8 +210,36 @@
'';
programs.zsh.loginShellInit = ''
nix-repl() {
command nix repl ''${@:-<nixpkgs>}
aarch-build() {
nix-build --option system aarch64-linux --store ssh-ng://aarch1 "$@"
}
arm-build() {
nix-build --option system armv7l-linux --store ssh-ng://arm1 "$@"
}
darwin-build() {
nix-build --option system x86_64-darwin --store ssh-ng://mac1 "$@"
}
linux-build() {
nix-build --option system x86_64-linux --store ssh-ng://nixos1 "$@"
}
install_name_tool() {
${pkgs.darwin.cctools}/bin/install_name_tool "$@"
}
otool() {
${pkgs.darwin.cctools}/bin/otool "$@"
}
darwin() {
nix repl ''${@:-<darwin>}
}
pkgs() {
nix repl ''${@:-<nixpkgs>}
}
hydra-job-revision() {
@ -299,7 +327,7 @@
environment.variables.FZF_DEFAULT_COMMAND = "ag -l -f -g ''";
environment.variables.SHELLCHECK_OPTS = "-e SC1008";
environment.variables.LC_CTYPE = "UTF-8";
environment.variables.LANG = "en_US.UTF-8";
environment.shellAliases.g = "git log --pretty=color -32";
environment.shellAliases.gb = "git branch";