nb changes, add wol script to fw
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
./modules/podman.nix
|
./modules/podman.nix
|
||||||
./modules/omada.nix
|
./modules/omada.nix
|
||||||
./modules/ddclient.nix
|
./modules/ddclient.nix
|
||||||
|
-/modules/wol.nix
|
||||||
|
|
||||||
# git
|
# git
|
||||||
./modules/gitea.nix
|
./modules/gitea.nix
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
htop # to see the system load
|
htop # to see the system load
|
||||||
tcpdump # view network traffic
|
tcpdump # view network traffic
|
||||||
vim # my preferred editor
|
vim # my preferred editor
|
||||||
|
wol
|
||||||
inotify-tools
|
inotify-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
19
hosts/fw.cloonar.com/modules/wol.nix
Normal file
19
hosts/fw.cloonar.com/modules/wol.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
wolScript = stdenv.mkDerivation {
|
||||||
|
name = "wol-script";
|
||||||
|
outputHashMode = "recursive";
|
||||||
|
outputHashAlgo = "sha256";
|
||||||
|
outputHash = sha256;
|
||||||
|
builder = writeShellScript "wol-lease" ''
|
||||||
|
IP=$(cat /var/lib/kea/dhcp4.leases | grep $1 | awk -F, '{print $1}' | tail -n 1);
|
||||||
|
MAC=$(cat /var/lib/kea/dhcp4.leases | grep $1 | awk -F, '{print $2}' | tail -n 1);
|
||||||
|
${pkgs.wol}/bin/wol -i $IP $MAC
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
wolScript
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -120,7 +120,6 @@ in {
|
|||||||
git-filter-repo
|
git-filter-repo
|
||||||
ykfde
|
ykfde
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
unstable.rustdesk-flutter
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
{
|
{
|
||||||
device = "none";
|
device = "none";
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
options = [ "size=3G" "mode=755" ];
|
options = [ "size=16G" "mode=755" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
|
|||||||
19
hosts/nb-new.cloonar.com/modules/sway/rustdesk.nix
Normal file
19
hosts/nb-new.cloonar.com/modules/sway/rustdesk.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
rustDeskDesktopItem = pkgs.makeDesktopItem {
|
||||||
|
name = "rustdesk-xorg";
|
||||||
|
desktopName = "RustDesk Xorg";
|
||||||
|
icon = "rustdesk";
|
||||||
|
exec = "env -u WAYLAND_DISPLAY rustdesk";
|
||||||
|
genericName = "Remote Desktop";
|
||||||
|
categories = [ "Network" ];
|
||||||
|
mimeTypes = [ "x-scheme-handler/rustdesk" ];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.rustdesk
|
||||||
|
rustDeskDesktopItem
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -26,6 +26,7 @@ in {
|
|||||||
./social.nix
|
./social.nix
|
||||||
./signal-work.nix
|
./signal-work.nix
|
||||||
./parsec.nix
|
./parsec.nix
|
||||||
|
./rustdesk.nix
|
||||||
./thunderbird.nix
|
./thunderbird.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -127,6 +128,7 @@ in {
|
|||||||
wayland
|
wayland
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wofi
|
wofi
|
||||||
|
wol
|
||||||
wtype
|
wtype
|
||||||
yubikey-manager-qt
|
yubikey-manager-qt
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user