hashcat heater

This commit is contained in:
2026-01-21 23:41:03 -05:00
parent 66aaa4aeaa
commit b029131c6c
2 changed files with 100 additions and 30 deletions

View File

@@ -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";