switched to AFKCommands rust rewrite

This commit is contained in:
ISnortPennies 2022-09-19 00:36:56 -04:00
parent d2113e0f50
commit d221a562f6
6 changed files with 37 additions and 9 deletions

View file

@ -34,8 +34,8 @@
};
overlays = [
(final: prev: rec {
AFKCommands = final.callPackage ./pkgs/AFKCommands {};
t-rex-miner = final.callPackage ./pkgs/t-rex-miner {};
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
}
)];
};

View file

@ -2,7 +2,6 @@ print_info() {
info title
info underline
info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
info "Packages" packages

View file

@ -4,8 +4,8 @@
./theme.nix
./git.nix
./neovim.nix
./alacritty.nix
];
xsession.numlock.enable = true;
programs.home-manager.enable = true;
home = {
username = "root";

View file

@ -9,7 +9,6 @@ environment.systemPackages = with pkgs; [
lightdm
lightdm-mini-greeter
#needed utils
mesa #3d acceleration
pciutils
binutils
alsa-utils

32
pkgs/afk-cmds/default.nix Normal file
View file

@ -0,0 +1,32 @@
{ lib
, rustPlatform
, fetchFromGitHub
, xorg
}:
rustPlatform.buildRustPackage rec {
pname = "afk-cmds";
version= "1.0.0";
src = fetchFromGitHub {
owner = "ISnortPennies";
repo = "afk-cmds";
rev = "6a131c4892ea411281426d1165a48607e556f729";
sha256 = "sha256-LK6XeQc5Rc7KxwL2r2L3dCAKtbENuigbyTTuS+7JKnQ=";
};
buildInputs = [
xorg.libXScrnSaver
xorg.libX11
];
cargoSha256 = "sha256-Osxg/KuHOdnz8UYnbT69dmNFLHW6Cq1fLb32/UJeDUg=";
meta = with lib; {
homepage = "https://github.com/ISnortPennies/AFKCommands";
description = "";
license = licenses.unlicense;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}

View file

@ -20,9 +20,7 @@
hardware.cpu.amd.updateMicrocode = true;
#end important stuff
environment.systemPackages = with pkgs; [
android-tools
openjdk
AFKCommands
afk-cmds
xmrig
t-rex-miner
];
@ -51,10 +49,10 @@
};
systemd.services.mining = {
enable = true;
path = with pkgs; [ AFKCommands t-rex-miner xmrig ];
path = with pkgs; [ afk-cmds t-rex-miner xmrig alacritty zsh ];
wantedBy = [ "graphical.target" ];
script = ''
AFKCommands
afk_cmds -c /home/gerg/afk-cmds.json
'';
environment = {
XAUTHORITY="/home/gerg/.Xauthority";