Make nix.xonsh apply to Linux
This commit is contained in:
@@ -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():
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user