refactor folder structure
This commit is contained in:
parent
da669efee2
commit
df50e70f3e
175 changed files with 7 additions and 3760 deletions
16
hosts/fw/modules/wol.nix
Normal file
16
hosts/fw/modules/wol.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
wolScript = pkgs.writeScriptBin "wol-script" ''
|
||||
case $1 in
|
||||
"gaming")
|
||||
${pkgs.wol}/bin/wol -i 10.42.96.255 78:8c:b5:fe:41:62
|
||||
};
|
||||
"") echo "Usage: $0 <hostname>"; exit 1;;
|
||||
esac
|
||||
'';
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
wolScript
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue