-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etc: add more known hashes for DeterminateSystems nix-installer #834
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
# Nix | ||
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then | ||
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' | ||
fi | ||
# End Nix | ||
|
||
|
||
# /etc/bashrc: DO NOT EDIT -- this file has been generated automatically. | ||
# This file is read for interactive shells. | ||
|
||
[ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM" | ||
|
||
# Only execute this file once per shell. | ||
if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi | ||
__ETC_BASHRC_SOURCED=1 | ||
|
||
# Don't execute this file when running in a pure nix-shell. | ||
if [ "$IN_NIX_SHELL" = "pure" ]; then return; fi | ||
|
||
if [ -z "$__NIX_DARWIN_SET_ENVIRONMENT_DONE" ]; then | ||
. /nix/store/aqx44dhrnk2kdk5mvpxix8xaqsr9f3lh-set-environment | ||
fi | ||
|
||
# Return early if not running interactively, but after basic nix setup. | ||
[[ $- != *i* ]] && return | ||
|
||
# Make bash check its window size after a process completes | ||
shopt -s checkwinsize | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
# Read system-wide modifications. | ||
if test -f /etc/bash.local; then | ||
source /etc/bash.local | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
# Set up Nix only on SSH connections | ||
# See: https://github.com/DeterminateSystems/nix-installer/pull/714 | ||
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ] && [ -n "${SSH_CONNECTION}" ] && [ "${SHLVL}" -eq 1 ]; then | ||
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' | ||
fi | ||
# End Nix | ||
# /etc/zshenv: DO NOT EDIT -- this file has been generated automatically. | ||
# This file is read for all shells. | ||
|
||
# Only execute this file once per shell. | ||
# But don't clobber the environment of interactive non-login children! | ||
if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi | ||
export __ETC_ZSHENV_SOURCED=1 | ||
|
||
# Don't execute this file when running in a pure nix-shell. | ||
if test -n "$IN_NIX_SHELL"; then return; fi | ||
|
||
if [ -z "$__NIX_DARWIN_SET_ENVIRONMENT_DONE" ]; then | ||
. /nix/store/aqx44dhrnk2kdk5mvpxix8xaqsr9f3lh-set-environment | ||
fi | ||
Comment on lines
+19
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, it looks like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How is one supposed to both use Determinate Systems’ installer and |
||
|
||
|
||
|
||
# Read system-wide modifications. | ||
if test -f /etc/zshenv.local; then | ||
source /etc/zshenv.local | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
ryan4yin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Nix | ||
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then | ||
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' | ||
fi | ||
# End Nix | ||
|
||
|
||
# /etc/zshrc: DO NOT EDIT -- this file has been generated automatically. | ||
# This file is read for interactive shells. | ||
|
||
# Only execute this file once per shell. | ||
if [ -n "$__ETC_ZSHRC_SOURCED" -o -n "$NOSYSZSHRC" ]; then return; fi | ||
__ETC_ZSHRC_SOURCED=1 | ||
|
||
# history defaults | ||
SAVEHIST=2000 | ||
HISTSIZE=2000 | ||
HISTFILE=$HOME/.zsh_history | ||
|
||
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK | ||
|
||
bindkey -e | ||
|
||
|
||
|
||
|
||
# Tell zsh how to find installed completions | ||
for p in ${(z)NIX_PROFILES}; do | ||
fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions) | ||
done | ||
|
||
autoload -U promptinit && promptinit && prompt walters && setopt prompt_sp | ||
|
||
autoload -U compinit && compinit | ||
autoload -U bashcompinit && bashcompinit | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
# Read system-wide modifications. | ||
if test -f /etc/zshrc.local; then | ||
source /etc/zshrc.local | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think these files are valid as these lines of code come from
nix-darwin
, not from DetSys'snix-installer
and shouldn't occur normally. They also include a store path which is going to change between systems.