mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
update nix-daemon service
This commit is contained in:
parent
c095042732
commit
5f7381fb7b
1 changed files with 7 additions and 3 deletions
10
config.nix
10
config.nix
|
@ -40,6 +40,9 @@ let
|
||||||
serviceConfig.RunAtLoad = true;
|
serviceConfig.RunAtLoad = true;
|
||||||
serviceConfig.EnvironmentVariables.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
serviceConfig.EnvironmentVariables.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
serviceConfig.EnvironmentVariables.TMPDIR = "/nix/tmp";
|
serviceConfig.EnvironmentVariables.TMPDIR = "/nix/tmp";
|
||||||
|
serviceConfig.EnvironmentVariables.NIX_BUILD_HOOK="/nix/var/nix/profiles/default/libexec/nix/build-remote.pl";
|
||||||
|
serviceConfig.EnvironmentVariables.NIX_REMOTE_SYSTEMS="/etc/nix/machines";
|
||||||
|
serviceConfig.EnvironmentVariables.NIX_CURRENT_LOAD="/nix/tmp/current-load";
|
||||||
serviceConfig.SoftResourceLimits.NumberOfFiles = 4096;
|
serviceConfig.SoftResourceLimits.NumberOfFiles = 4096;
|
||||||
serviceConfig.ProcessType = "Background";
|
serviceConfig.ProcessType = "Background";
|
||||||
};
|
};
|
||||||
|
@ -65,8 +68,9 @@ let
|
||||||
|
|
||||||
environment.shellAliases.l = "ls -lh";
|
environment.shellAliases.l = "ls -lh";
|
||||||
environment.shellAliases.ls = "ls -G";
|
environment.shellAliases.ls = "ls -G";
|
||||||
environment.shellAliases.g = "git log --graph --oneline";
|
environment.shellAliases.g = "git log --oneline --max-count 42";
|
||||||
environment.shellAliases.gd = "git diff --minimal -p";
|
environment.shellAliases.gl = "git log --graph --oneline";
|
||||||
|
environment.shellAliases.gd = "git diff --minimal --patch";
|
||||||
|
|
||||||
environment.etc."zprofile".text = ''
|
environment.etc."zprofile".text = ''
|
||||||
# /etc/zprofile: DO NOT EDIT -- this file has been generated automatically.
|
# /etc/zprofile: DO NOT EDIT -- this file has been generated automatically.
|
||||||
|
@ -131,7 +135,7 @@ let
|
||||||
if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi
|
if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi
|
||||||
export __ETC_ZSHENV_SOURCED=1
|
export __ETC_ZSHENV_SOURCED=1
|
||||||
|
|
||||||
export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/nixpkgs
|
export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/nixpkgs:$NIX_PATH/.nix-defexpr/channels_root
|
||||||
|
|
||||||
# Set up secure multi-user builds: non-root users build through the
|
# Set up secure multi-user builds: non-root users build through the
|
||||||
# Nix daemon.
|
# Nix daemon.
|
||||||
|
|
Loading…
Reference in a new issue