mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
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:
1 parent
90edf3fe2a
commit
52573278bd
3 files changed
+7
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user