feat(base): install python313 on every NixOS host

Hosts without Home Manager (aquamarine, the VM hosts, k3s guests) had no
interpreter. The system profile is separate from the per-user one, so desktops
keep their Home Manager copy in PATH.

Assisted-by: DeepSeek Harness 0.2.1-rc.2 (deepseek-flash)
This commit is contained in:
Ryan Yin committed 2026-10-20 00:20:12 +08:00
1 parent 90edf3fe2a
commit 52573278bd
3 files changed
+7

No files matched your search

+3
View File
@@ -37,6 +37,9 @@ in
psmisc # killall/pstree/prtstat/fuser/...
ethtool
pv # pipe view
# System-wide interpreter; Home Manager's python313 on desktops is a separate profile.
python313
]
++ lib.optionals hardwareTools.enable [
lm_sensors # `sensors` command
@@ -20,6 +20,7 @@
collectorFlagsUnique = true;
inferenceUserCanRender = true;
noHomeManager = true;
pythonInstalled = true;
staticAddressMatchesWiredInterface = true;
rootIsTmpfs = true;
stateIsPersistent = true;
@@ -82,6 +82,9 @@ in
# Headless: no desktop session, no Home Manager.
noHomeManager = !cfg ? home-manager.users;
pythonInstalled = builtins.any (
package: lib.hasPrefix "python3-" (package.name or "")
) cfg.environment.systemPackages;
# The board renames the wired NIC with the PCIe topology, so networkd matches the
# `en*` prefix; a name-based match leaves the host without an address.