azure-agent: remove x86 assertion

This commit is contained in:
codgician
2024-08-09 08:46:10 +08:00
parent 2cd969c108
commit 0799550a95

View File

@@ -11,7 +11,6 @@ let
''; '';
in in
{ {
###### interface ###### interface
@@ -35,13 +34,9 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
assertions = [{ assertions = [{
assertion = pkgs.stdenv.hostPlatform.isx86; assertion = config.networking.networkmanager.enable == false;
message = "Azure not currently supported on ${pkgs.stdenv.hostPlatform.system}"; message = "Windows Azure Linux Agent is not compatible with NetworkManager";
} }];
{
assertion = config.networking.networkmanager.enable == false;
message = "Windows Azure Linux Agent is not compatible with NetworkManager";
}];
boot.initrd.kernelModules = [ "ata_piix" ]; boot.initrd.kernelModules = [ "ata_piix" ];
networking.firewall.allowedUDPPorts = [ 68 ]; networking.firewall.allowedUDPPorts = [ 68 ];