diff --git a/xonsh/nix.xsh b/xonsh/nix.xsh index 2be7eb0..9b93391 100644 --- a/xonsh/nix.xsh +++ b/xonsh/nix.xsh @@ -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_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)