Files
nixos/modules/system/network/wake-on-lan.nix
2026-07-06 17:02:20 +01:00

23 lines
378 B
Nix

{
self,
inputs,
...
}: {
flake.nixosModules.networking = {
pkgs,
lib,
...
}: let
modules = with self.nixosModules; [
networking
];
in {
imports = modules;
networking = {
# Just for hackstation, replace enp5s0 with primary interface
interfaces.enp5s0.wakeOnLan.enable = true;
firewall.enable = false;
};
};
}