mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
AFKCommands fully working
This commit is contained in:
parent
c2beebcabf
commit
a3675515d8
3 changed files with 22 additions and 12 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue