Make nix.xonsh apply to Linux

This commit is contained in:
2022-03-08 11:46:15 -08:00
parent e0c7774134
commit 7ae526e91f

View File

@@ -1,11 +1,12 @@
from xonsh.platform import ON_DARWIN
# Nix integration
if ON_DARWIN:
nix_daemon_path = p"/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh"
if nix_daemon_path.exists():
nix_daemon_path = p"/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh"
if nix_daemon_path.exists():
source-bash @(nix_daemon_path)
# Nix-darwin integration
if ON_DARWIN:
nix_darwin_path = p"/etc/static/bashrc"
if nix_darwin_path.exists():
source-bash @(nix_darwin_path)