feat: wakeonlan

This commit is contained in:
s-prechtl 2025-11-05 01:43:59 +01:00
parent f86530009f
commit b55017468e

View file

@ -43,6 +43,7 @@ in {
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "hitsugibune"; networking.hostName = "hitsugibune";
networking.interfaces.enp0s31f6.wakeOnLan.enable = true;
time.timeZone = "Europe/Vienna"; time.timeZone = "Europe/Vienna";
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
@ -57,14 +58,15 @@ in {
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim bc
wget btop
git git
temurin-bin-17
mcrcon mcrcon
rsync rsync
btop temurin-bin-17
bc vim
wakeonlan
wget
]; ];
services.openssh = { services.openssh = {
@ -78,7 +80,8 @@ in {
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
networking.firewall.allowedUDPPorts = [24454]; # 9 wake on lan
networking.firewall.allowedUDPPorts = [24454 9];
services.modded-minecraft-servers = { services.modded-minecraft-servers = {
# This is mandatory, sorry. # This is mandatory, sorry.