hashcat heater
This commit is contained in:
@@ -13,6 +13,38 @@
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
systemd.services.heat-room = {
|
||||
description = "Morning room heating";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "jeremy";
|
||||
RuntimeMaxSec = 3600;
|
||||
};
|
||||
script = ''
|
||||
while true; do
|
||||
${pkgs.hashcat}/bin/hashcat -b
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
systemd.timers.heat-room = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "*-*-* 04:00:00"; # Runs at 4:00:00 AM every day
|
||||
Persistent = true; # Run immediately if a scheduled time was missed
|
||||
WakeSystem = true; # Wakes the system from suspend/hibernate
|
||||
Unit = "heat-room.service";
|
||||
};
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd # Enables OpenCL support for AMD
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-label/NIXROOT";
|
||||
fsType = "ext4";
|
||||
|
||||
Reference in New Issue
Block a user