Use pkgs.stdenv.hostPlatform.system instead of config.system for binfmt condition

This commit is contained in:
Don Harper 2026-05-05 14:45:58 -05:00
parent 7df7f67e0e
commit fbddebf00e
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@
networking.hostName = "fred";
variables.address = "100.72.236.170";
boot = {
binfmt.emulatedSystems = lib.optionals (config.system != "aarch64-linux") [ "aarch64-linux" ];
binfmt.emulatedSystems = lib.optionals (pkgs.stdenv.hostPlatform.system != "aarch64-linux") [ "aarch64-linux" ];
loader = {
systemd-boot = {enable = true;};
efi = {

View file

@ -65,7 +65,7 @@ in {
# Bootloader.
boot = {
binfmt.emulatedSystems = lib.optionals (config.system != "aarch64-linux") [ "aarch64-linux" ];
binfmt.emulatedSystems = lib.optionals (pkgs.stdenv.hostPlatform.system != "aarch64-linux") [ "aarch64-linux" ];
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = ["consoleblank=60"];
#loader = {

View file

@ -164,7 +164,7 @@ in {
# Bootloader.
boot = {
binfmt.emulatedSystems = lib.optionals (config.system != "aarch64-linux") [ "aarch64-linux" ];
binfmt.emulatedSystems = lib.optionals (pkgs.stdenv.hostPlatform.system != "aarch64-linux") [ "aarch64-linux" ];
# kernelPackages = pkgs.linuxPackages_latest;
kernelPackages = pkgs.linuxPackages_zen;
kernelParams = ["consoleblank=60" "mem_sleep_default=deep"];