Fix binfmt.emulatedSystems to use lib.optionals instead of lib.optional

This commit is contained in:
Don Harper 2026-05-05 14:44:36 -05:00
parent 89929ac69a
commit 7df7f67e0e
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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