move wol out of base

This commit is contained in:
Satria 2026-02-28 18:57:34 +07:00
commit 74b53f0796
2 changed files with 2 additions and 23 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, wol, ... }: {
{ ... }: {
boot = {
kernelModules = [
"rndis_host"
@ -19,28 +19,6 @@
];
};
systemd.services."wol" = {
enable = wol != "";
description = "Wake-on-LAN for ${wol}";
requires = [ "network.target" ];
after = [ "network.target" ];
serviceConfig = {
ExecStart = "${pkgs.ethtool}/bin/ethtool -s ${wol} wol g";
Type = "oneshot";
};
wantedBy = [
# just in case
"multi-user.target"
"sleep.target"
"suspend.target"
"hibernate.target"
"hybrid-sleep.target"
"shutdown.target"
"reboot.target"
"halt.target"
];
};
services = {
avahi = {
enable = true;

View file

@ -3,6 +3,7 @@
./misc/programs.nix
./misc/graphics.nix
./misc/theme.nix
./misc/wol.nix
./base.nix
];