about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2024-05-16 11:48:32 +0200
committerFabian Möller <fabianm88@gmail.com>2024-05-16 11:48:32 +0200
commitda68f358bc114a337af38b1789779a066299137a (patch)
treed4d0529e558d3ec67f84cca887c7eadcc704f439 /nixos/modules/system
parentdc13d8a39b4200e768c435db8de2d859d731c9b2 (diff)
treewide: Remove usage of pkgs.{system,hostPlatform} aliases
These aliases should not be used inside nixpkgs and are only there for backward
compatibility.
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/binfmt.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix
index 572bfeda7a8ff..1d702442f7f66 100644
--- a/nixos/modules/system/boot/binfmt.nix
+++ b/nixos/modules/system/boot/binfmt.nix
@@ -280,7 +280,7 @@ in {
   };
 
   config = {
-    boot.binfmt.registrations = builtins.listToAttrs (map (system: assert system != pkgs.system; {
+    boot.binfmt.registrations = builtins.listToAttrs (map (system: assert system != pkgs.stdenv.hostPlatform.system; {
       name = system;
       value = { config, ... }: let
         interpreter = getEmulator system;