mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
update example
This commit is contained in:
parent
9439a439e8
commit
d06b9e82f3
2 changed files with 5 additions and 24 deletions
|
@ -83,11 +83,6 @@
|
|||
|
||||
conf=$HOME/.nixpkgs/darwin-config.nix
|
||||
pkgs=$HOME/.nix-defexpr/nixpkgs
|
||||
|
||||
# Read system-wide modifications.
|
||||
if test -f /etc/zprofile.local; then
|
||||
. /etc/zprofile.local
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.zsh.interactiveShellInit = ''
|
||||
|
@ -97,12 +92,6 @@
|
|||
HISTFILE=$HOME/.zsh_history
|
||||
|
||||
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
|
||||
|
||||
export PATH=${config.environment.systemPath}''${PATH:+:$PATH}
|
||||
typeset -U PATH
|
||||
|
||||
${config.system.build.setEnvironment}
|
||||
${config.system.build.setAliases}
|
||||
'';
|
||||
|
||||
environment.variables.EDITOR = "vim";
|
||||
|
|
|
@ -7,20 +7,12 @@
|
|||
[ pkgs.nix-repl
|
||||
];
|
||||
|
||||
environment.etc."bashrc".text = ''
|
||||
# /etc/bashrc: DO NOT EDIT -- this file has been generated automatically.
|
||||
# This file is read for interactive shells.
|
||||
programs.bash.enable = true;
|
||||
programs.bash.interactiveShellInit = ''
|
||||
# Edit the NIX_PATH entries below or put the nix-darwin repository in
|
||||
# ~/.nix-defexpr/darwin and your configuration in ~/.nixpkgs/darwin-config.nix
|
||||
|
||||
# Only execute this file once per shell.
|
||||
if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi
|
||||
__ETC_BASHRC_SOURCED=1
|
||||
|
||||
export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/nixpkgs:darwin=$HOME/.nix-defexpr/darwin:darwin-config=$HOME/.nixpkgs/darwin-config.nix:$NIX_PATH
|
||||
|
||||
export PATH=${config.environment.systemPath}''${PATH:+:$PATH}
|
||||
|
||||
${config.system.build.setEnvironment}
|
||||
${config.system.build.setAliases}
|
||||
export NIX_PATH=darwin=$HOME/.nix-defexpr/darwin:darwin-config=$HOME/.nixpkgs/darwin-config.nix:$NIX_PATH
|
||||
'';
|
||||
|
||||
services.activate-system.enable = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue