Compare commits
2 commits
18d9462fa9
...
0b197aca6d
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | 0b197aca6d | ||
Dmitry Voronin | 791389d0f2 |
|
@ -25,6 +25,13 @@ in {
|
|||
hostAddress = "188.242.247.132";
|
||||
localAddress = "10.1.0.2";
|
||||
|
||||
bindMounts = {
|
||||
"/data" = {
|
||||
hostPath = "/storage/hot/data/jobber";
|
||||
isReadOnly = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = { ... }: let
|
||||
packages = [
|
||||
script
|
||||
|
|
19
host/x86_64-linux/max/Fan.nix
Normal file
19
host/x86_64-linux/max/Fan.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
__findFile,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
wm2fc = pkgs.callPackage <package/wm2fc> {};
|
||||
in {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wm2fc
|
||||
];
|
||||
|
||||
security.wrappers.wm2fc = {
|
||||
source = "${wm2fc}/bin/wm2fc";
|
||||
owner = "root";
|
||||
group = "root";
|
||||
setuid = true;
|
||||
permissions = "u+rx,g+x,o+x";
|
||||
};
|
||||
}
|
|
@ -29,8 +29,8 @@ URL_SCHEME = "https://"
|
|||
URL = "portal.fsight.ru/"
|
||||
# DRIVER = "/data/geckodriver"
|
||||
DRIVER = "geckodriver"
|
||||
USERS = "/storage/hot/data/jobber/users.txt"
|
||||
OVPN = "/storage/hot/data/jobber/fsight.ovpn"
|
||||
USERS = "/data/users.txt"
|
||||
OVPN = "/data/fsight.ovpn"
|
||||
BUTTON = "//*[contains(@id, '_InOutButton')]"
|
||||
TEXT_HERE = "Пришёл"
|
||||
TEXT_GONE = "Ушёл"
|
||||
|
|
28
package/wm2fc/default.nix
Normal file
28
package/wm2fc/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
# SRC: https://github.com/matega/win-max-2-fan-control
|
||||
{
|
||||
autoPatchelfHook,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
stdenv,
|
||||
}: stdenv.mkDerivation {
|
||||
# dontUnpack = true;
|
||||
name = "wm2fc";
|
||||
src = fetchFromGitHub {
|
||||
hash = "sha256-rU0n+4glTWHWjbvbc7Se0O53g1mVDwBP5SkH4ftwNWk=";
|
||||
owner = "matega";
|
||||
repo = "win-max-2-fan-control";
|
||||
rev = "a9e65011e0b45d0a76fc5307ad2b7b585410dece";
|
||||
};
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 dist/Debug/GNU-Linux/winmax2fancontrol $out/bin/wm2fc
|
||||
runHook postInstall
|
||||
'';
|
||||
meta = with lib; {
|
||||
description = "GPD Win Max 2 Fan Control PoC";
|
||||
license = licenses.gpl3;
|
||||
mainProgram = "wm2fc";
|
||||
meta.platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue