From 7ae526e91ff5a98b301ce2bf975033c9cce78aba Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Tue, 8 Mar 2022 11:46:15 -0800 Subject: [PATCH] Make nix.xonsh apply to Linux --- xonsh/nix.xsh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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)