added network system module
This commit is contained in:
22
modules/system/network/wake-on-lan.nix
Normal file
22
modules/system/network/wake-on-lan.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user