70 lines
1.8 KiB
Nix
70 lines
1.8 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
systemd.services.heat-room = {
|
||
description = "Morning room heating";
|
||
serviceConfig = {
|
||
Type = "oneshot";
|
||
User = "jeremy";
|
||
};
|
||
script = ''
|
||
${pkgs.furmark}/bin/furmark --demo furmark-gl &
|
||
hyprctl dispatch dpms off
|
||
sleep 1h
|
||
pkill furmark
|
||
'';
|
||
};
|
||
|
||
|
||
|
||
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";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-label/NIXBOOT";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
fileSystems."/home/jeremy" =
|
||
{ device = "/dev/disk/by-label/JEREMY";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|