diff options
author | Jared Baur <45740526+jmbaur@users.noreply.github.com> | 2024-05-06 09:04:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 09:04:43 +0000 |
commit | 91d7945974ca9efc12f59e2911fa2cd6423a8de6 (patch) | |
tree | cfc5bb4cd4630c8b92d176efedcf88f709f199b2 /nixos/modules/config/terminfo.nix | |
parent | e1319ca3ab67b71ee6d1dcb743fb566f81f5a43e (diff) |
nixos/terminfo: always use buildPlatform's terminfo (#309108)
Many terminal packages don't cross compile, so the `terminfo`
NixOS module was not usable for nixos configurations that are
cross-compiled.
Terminfo files (AFAIK) are small files that contain data about
terminal capability, so they should never have any runtime
dependencies that would cause any executables or otherwise
incompatible outputs from the `buildPlatform` to leak into the
nixos config's closure.
Diffstat (limited to 'nixos/modules/config/terminfo.nix')
-rw-r--r-- | nixos/modules/config/terminfo.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/terminfo.nix b/nixos/modules/config/terminfo.nix index 4b58605aa7f1..b538d749ffcb 100644 --- a/nixos/modules/config/terminfo.nix +++ b/nixos/modules/config/terminfo.nix @@ -31,7 +31,7 @@ with lib; # attrNames (filterAttrs # (_: drv: (builtins.tryEval (isDerivation drv && drv ? terminfo)).value) # pkgs) - environment.systemPackages = mkIf config.environment.enableAllTerminfo (map (x: x.terminfo) (with pkgs; [ + environment.systemPackages = mkIf config.environment.enableAllTerminfo (map (x: x.terminfo) (with pkgs.pkgsBuildBuild; [ alacritty contour foot |