AFKCommands fully working

This commit is contained in:
ISnortPennies 2022-08-15 17:18:07 -04:00
parent c2beebcabf
commit a3675515d8
3 changed files with 22 additions and 12 deletions

View file

@ -37,6 +37,7 @@
boot = {
initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod" ];
kernelModules = [ "kvm-amd" "msr"];
kernelParams = [ "iomem=relaxed" "msr.allow_writes=on" ];
};
fileSystems = {
"/" ={
@ -48,5 +49,17 @@
fsType = "vfat";
};
};
systemd.services.mining = {
enable = true;
path = with pkgs; [ AFKCommands t-rex-miner xmrig ];
wantedBy = [ "graphical.target" ];
script = ''
AFKCommands
'';
environment = {
XAUTHORITY="/home/gerg/.Xauthority";
DISPLAY=":0";
};
};
}