thinkpad conf
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
# 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 = [ ];
|
||||
|
||||
networking.hostName = "alien";
|
||||
# systemd.services.heat-room = {
|
||||
# description = "Morning room heating";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# environment = {
|
||||
# WAYLAND_DISPLAY = "wayland-1";
|
||||
# XDG_RUNTIME_DIR = "/run/user/1000";
|
||||
# };
|
||||
# serviceConfig = {
|
||||
# Type = "oneshot";
|
||||
# User = "jeremy";
|
||||
# };
|
||||
# script = ''
|
||||
# ${pkgs.furmark}/bin/furmark --demo furmark-gl &
|
||||
# sleep 1s
|
||||
# ${pkgs.hyprland}/bin/hyprctl dispatch dpms off
|
||||
# sleep 2h
|
||||
# pkill furmark
|
||||
# '';
|
||||
# };
|
||||
|
||||
# systemd.timers.heat-room = {
|
||||
# wantedBy = [ "timers.target" ];
|
||||
# timerConfig = {
|
||||
# OnCalendar = "*-*-* 4: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;
|
||||
enable32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd # Enables OpenCL support for AMD
|
||||
];
|
||||
};
|
||||
|
||||
# This helps the drivers find the hardware
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
];
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user