summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-14 16:33:49 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-14 16:33:49 +0200
commite39aad56c2d834a91f9129b7a894feaca5ddcb6b (patch)
tree33f856f10ead490fa71fc3e8914d819410a5fd86 /nixos
parentaf075c4055d9410254614e75c45f454e78ea8e4b (diff)
parent40da78346f61961af98bfb53c9ce1c8763520251 (diff)
downloadnixpkgs-e39aad56c2d834a91f9129b7a894feaca5ddcb6b.tar
nixpkgs-e39aad56c2d834a91f9129b7a894feaca5ddcb6b.tar.gz
nixpkgs-e39aad56c2d834a91f9129b7a894feaca5ddcb6b.tar.bz2
nixpkgs-e39aad56c2d834a91f9129b7a894feaca5ddcb6b.tar.lz
nixpkgs-e39aad56c2d834a91f9129b7a894feaca5ddcb6b.tar.xz
nixpkgs-e39aad56c2d834a91f9129b7a894feaca5ddcb6b.tar.zst
nixpkgs-e39aad56c2d834a91f9129b7a894feaca5ddcb6b.zip
Merge branch 'master' into staging-next
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/tasks/network-interfaces-scripted.nix2
-rw-r--r--nixos/modules/tasks/network-interfaces.nix10
-rw-r--r--nixos/release-combined.nix11
3 files changed, 19 insertions, 4 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix
index 67ef152c4b6..da4aa916d65 100644
--- a/nixos/modules/tasks/network-interfaces-scripted.nix
+++ b/nixos/modules/tasks/network-interfaces-scripted.nix
@@ -61,8 +61,6 @@ let
           MACAddress = i.macAddress;
         } // optionalAttrs (i.mtu != null) {
           MTUBytes = toString i.mtu;
-        } // optionalAttrs (i.wakeOnLan.enable == true) {
-          WakeOnLan = concatStringsSep " " i.wakeOnLan.policy;
         };
       };
     in listToAttrs (map createNetworkLink interfaces);
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 4900b77de37..eda036cb726 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -1463,6 +1463,16 @@ in
       ]
       ++ bridgeStp;
 
+    # Wake-on-LAN configuration is shared by the scripted and networkd backends.
+    systemd.network.links = pipe interfaces [
+      (filter (i: i.wakeOnLan.enable))
+      (map (i: nameValuePair "40-${i.name}" {
+        matchConfig.OriginalName = i.name;
+        linkConfig.WakeOnLan = concatStringsSep " " i.wakeOnLan.policy;
+      }))
+      listToAttrs
+    ];
+
     # The network-interfaces target is kept for backwards compatibility.
     # New modules must NOT use it.
     systemd.targets.network-interfaces =
diff --git a/nixos/release-combined.nix b/nixos/release-combined.nix
index 29dcdab7d18..9c46409312a 100644
--- a/nixos/release-combined.nix
+++ b/nixos/release-combined.nix
@@ -67,8 +67,15 @@ in rec {
         (onSystems ["x86_64-linux"] "nixos.tests.docker")
         (onFullSupported "nixos.tests.ecryptfs")
         (onFullSupported "nixos.tests.env")
-        (onFullSupported "nixos.tests.firefox-esr")
-        (onFullSupported "nixos.tests.firefox")
+
+        # Way too many manual retries required on Hydra.
+        #  Apparently it's hard to track down the cause.
+        #  So let's depend just on the packages for now.
+        #(onFullSupported "nixos.tests.firefox-esr")
+        #(onFullSupported "nixos.tests.firefox")
+        (onFullSupported "nixpkgs.firefox-esr")
+        (onFullSupported "nixpkgs.firefox")
+
         (onFullSupported "nixos.tests.firewall")
         (onFullSupported "nixos.tests.fontconfig-default-fonts")
         (onFullSupported "nixos.tests.gnome")