summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces.nix
diff options
context:
space:
mode:
authorlegendofmiracles <legendofmiracles@protonmail.com>2021-10-01 18:08:39 -0600
committerlegendofmiracles <legendofmiracles@protonmail.com>2021-10-07 14:15:17 -0600
commitbb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875 (patch)
tree03616ce299cf92db7c33aac0431d4fc6fb4ab990 /nixos/modules/tasks/network-interfaces.nix
parent1f70bb329716aedc98644aada3e31f79c83ad6cf (diff)
downloadnixpkgs-bb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875.tar
nixpkgs-bb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875.tar.gz
nixpkgs-bb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875.tar.bz2
nixpkgs-bb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875.tar.lz
nixpkgs-bb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875.tar.xz
nixpkgs-bb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875.tar.zst
nixpkgs-bb3ea37eeed0da6dbd2c6a6c08abbdd16cf5f875.zip
nixos/networking: add the wakeonlan option
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 34a44b383a4..82893d91fbb 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 = {