summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces.nix
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2021-10-09 10:34:26 +0200
committerGitHub <noreply@github.com>2021-10-09 10:34:26 +0200
commit46b2a2594a362cdeffc925e2e7bb5906f5c3e25c (patch)
treed40b06904524a672392af12b1a2d53faaceb9463 /nixos/modules/tasks/network-interfaces.nix
parent5170bbc0158daeaefca344fbf2275e1f261f9067 (diff)
parent31f04fec3c4c993d75ea4c7243fbc57103525282 (diff)
downloadnixpkgs-46b2a2594a362cdeffc925e2e7bb5906f5c3e25c.tar
nixpkgs-46b2a2594a362cdeffc925e2e7bb5906f5c3e25c.tar.gz
nixpkgs-46b2a2594a362cdeffc925e2e7bb5906f5c3e25c.tar.bz2
nixpkgs-46b2a2594a362cdeffc925e2e7bb5906f5c3e25c.tar.lz
nixpkgs-46b2a2594a362cdeffc925e2e7bb5906f5c3e25c.tar.xz
nixpkgs-46b2a2594a362cdeffc925e2e7bb5906f5c3e25c.tar.zst
nixpkgs-46b2a2594a362cdeffc925e2e7bb5906f5c3e25c.zip
Merge pull request #140779 from legendofmiracles/wol
nixos/wakeonlan: switch to systemd.link and to nixos/networking
Diffstat (limited to 'nixos/modules/tasks/network-interfaces.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 47626bf030a..313b0fac7da 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -284,6 +284,13 @@ let
         '';
       };
 
+      wakeOnLan = {
+        enable = mkOption {
+          type = types.bool;
+          default = false;
+          description = "Wether to enable wol on this interface.";
+        };
+      };
     };
 
     config = {