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 = [ overlays = [
(final: prev: rec { (final: prev: rec {
AFKCommands = final.callPackage ./pkgs/AFKCommands {};
t-rex-miner = final.callPackage ./pkgs/t-rex-miner {}; 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 title
info underline info underline
info "OS" distro info "OS" distro
info "Host" model
info "Kernel" kernel info "Kernel" kernel
info "Uptime" uptime info "Uptime" uptime
info "Packages" packages info "Packages" packages

View file

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

View file

@ -9,7 +9,6 @@ environment.systemPackages = with pkgs; [
lightdm lightdm
lightdm-mini-greeter lightdm-mini-greeter
#needed utils #needed utils
mesa #3d acceleration
pciutils pciutils
binutils binutils
alsa-utils 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; hardware.cpu.amd.updateMicrocode = true;
#end important stuff #end important stuff
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
android-tools afk-cmds
openjdk
AFKCommands
xmrig xmrig
t-rex-miner t-rex-miner
]; ];
@ -51,10 +49,10 @@
}; };
systemd.services.mining = { systemd.services.mining = {
enable = true; enable = true;
path = with pkgs; [ AFKCommands t-rex-miner xmrig ]; path = with pkgs; [ afk-cmds t-rex-miner xmrig alacritty zsh ];
wantedBy = [ "graphical.target" ]; wantedBy = [ "graphical.target" ];
script = '' script = ''
AFKCommands afk_cmds -c /home/gerg/afk-cmds.json
''; '';
environment = { environment = {
XAUTHORITY="/home/gerg/.Xauthority"; XAUTHORITY="/home/gerg/.Xauthority";