diff --git a/flake.nix b/flake.nix index c976fc36..002dfab1 100644 --- a/flake.nix +++ b/flake.nix @@ -75,11 +75,7 @@ mobile-nixos-vm = nixosSystem { system = "x86_64-linux"; specialArgs = attrs // { nix-config = self; }; - modules = phoneModules ++ [ - { - boot.loader.systemd-boot.enable = true; - } - ]; + modules = phoneModules; }; }; diff --git a/hosts/phone/configuration.nix b/hosts/phone/configuration.nix index 7588b1d9..135b6984 100644 --- a/hosts/phone/configuration.nix +++ b/hosts/phone/configuration.nix @@ -1,7 +1,7 @@ { self, pkgs, config, lib, ... }: let - inherit (lib) mkForce; + inherit (lib) mkIf mkForce; inherit (lib.gvariant) mkTuple; inherit (config.modules.system) username; inherit (builtins) attrValues; @@ -180,7 +180,7 @@ in enableContainers = false; binfmt.emulatedSystems = mkForce [ ]; - loader.systemd-boot.enable = mkForce false; + loader.systemd-boot.enable = mkIf (pkgs.system == "aarch64-linux") (mkForce false); }; documentation.man.generateCaches = false;