Compare commits

..

2 commits

Author SHA1 Message Date
b0aa81270d xonsh: clear an error message on droid 2025-06-16 01:07:55 +02:00
4ef672844a fixes for droid 2025-06-15 13:04:38 +02:00
2 changed files with 5 additions and 2 deletions

View file

@ -24,6 +24,8 @@ with pkgs;
tmux
starship
deprekages._7zz
gnused
gnugrep
# Backup things.
keepassxc
@ -255,5 +257,6 @@ with pkgs;
ethtool
]
else
[ ]
[
]
)

View file

@ -84,7 +84,7 @@ if not 'XONSH_HAS_NIXOS' in ${...}:
$XONSH_HAS_NIXOS = False;
if not $XONSH_HAS_NIXOS:
if !(grep -q "DISTRIB_ID=nixos" /etc/lsb-release).returncode == 0:
if (p"/etc/lsb_release".exists()) && !(grep -q "DISTRIB_ID=nixos" /etc/lsb-release).returncode == 0:
if XONSHRC_VERBOSE:
print("Found a NixOS machine; automatically loading the NixOS extensions.")
try_source("includes/nixos")