Nix : Make shell build link for gc root.
This commit is contained in:
parent
025f711262
commit
4ddcd4420c
|
@ -1,4 +1,4 @@
|
||||||
{ environment, ... }: {
|
{ environment, pkgs, ... }: {
|
||||||
security.loginDefs.settings.UMASK = "077";
|
security.loginDefs.settings.UMASK = "077";
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
# Neovim.
|
# Neovim.
|
||||||
|
@ -11,5 +11,8 @@
|
||||||
|
|
||||||
# Proton.
|
# Proton.
|
||||||
WINEFSYNC = "1";
|
WINEFSYNC = "1";
|
||||||
|
|
||||||
|
# Nix.
|
||||||
|
NIX_CURRENT_SYSTEM = "${pkgs.stdenv.system}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,8 +33,8 @@ function nix_shell() {
|
||||||
local target="${1}"
|
local target="${1}"
|
||||||
[[ "${target}" = "" ]] && target="default"
|
[[ "${target}" = "" ]] && target="default"
|
||||||
|
|
||||||
nix build ".#devShells.${target}" -o ".NixRoot"
|
nix build ".#devShells.${NIX_CURRENT_SYSTEM}.${target}" -o ".NixRoot${target^}"
|
||||||
NIX_SHELL="${target}" nix develop ".#devShells.${target}"
|
NIX_SHELL="${target}" nix develop ".#devShells.${NIX_CURRENT_SYSTEM}.${target}"
|
||||||
}
|
}
|
||||||
alias shell="nix_shell"
|
alias shell="nix_shell"
|
||||||
|
|
||||||
|
|
Reference in a new issue