this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: send WoL after servers started

Khue Doan 53d3fccc 98bc72bb

+7 -1
+1 -1
README.md
··· 23 23 - [x] Build a custom NixOS installer from a flake 24 24 - [x] Built-in PXE server based on [Pixiecore](https://github.com/danderson/netboot/tree/main/pixiecore) to serve netboot components from the custom installer 25 25 - [x] Install NixOS from a flake using [nixos-anywhere](https://nix-community.github.io/nixos-anywhere) 26 - - [ ] Remote power-on with [Wake-on-LAN](https://en.wikipedia.org/wiki/Wake-on-LAN) 26 + - [x] Remote power-on with [Wake-on-LAN](https://en.wikipedia.org/wiki/Wake-on-LAN) 27 27 - [ ] Host status check with IP discovery 28 28 - [x] Stateless and ephemeral [^1] 29 29 - [x] Fast, under 2 minutes to install NixOS from empty hard drives [^2]
+6
cmd/nixie/main.go
··· 79 79 } 80 80 }() 81 81 82 + // TODO probably need a better place to put these, maybe one go routine to manage each machine 83 + for _, host := range hostsConfig { 84 + log.Info("sending magic packet", "mac", host.MACAddress) 85 + network.SendWakeOnLAN(host.MACAddress) 86 + } 87 + 82 88 sigCh := make(chan os.Signal, 1) 83 89 signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM) 84 90