Compare commits
4 Commits
8924fdbc6d
...
396c8e0318
| Author | SHA1 | Date | |
|---|---|---|---|
| 396c8e0318 | |||
| b359acfcf0 | |||
| 455181365a | |||
| 06dd292524 |
@@ -80,11 +80,47 @@
|
|||||||
|
|
||||||
(after! gptel
|
(after! gptel
|
||||||
:config
|
:config
|
||||||
(setq! gptel-api-key (my/get-rbw-password "openai-api-key-chatgpt-el"))
|
(setq! gptel-api-key (my/get-rbw-password "openai-api-key-chatgpt-el")
|
||||||
|
gptel-default-mode 'org-mode
|
||||||
|
gptel-use-tools t
|
||||||
|
gptel-confirm-tool-calls 'always)
|
||||||
|
|
||||||
(gptel-make-ollama "Ollama-Local"
|
(gptel-make-ollama "Ollama-Local"
|
||||||
:host "localhost:11434"
|
:host "localhost:11434"
|
||||||
:stream t
|
:stream t
|
||||||
:models '(deepseek-r1 deepseek-r1-fullctx qwen3 qwen3-coder)))
|
:models '(deepseek-r1 deepseek-r1-fullctx qwen3 qwen3-coder llama3.1 qwen2.5-coder mistral-nemo gpt-oss))
|
||||||
|
|
||||||
|
;; Define custom tools
|
||||||
|
(gptel-make-tool
|
||||||
|
:name "run_shell_command"
|
||||||
|
:description "Execute shell commands and return output. Use this to run system commands, check file contents, or perform system operations."
|
||||||
|
:function (lambda (command)
|
||||||
|
(condition-case err
|
||||||
|
(shell-command-to-string command)
|
||||||
|
(error (format "Error running command: %s" (error-message-string err)))))
|
||||||
|
:args (list '(:name "command" :type "string" :description "Shell command to execute")))
|
||||||
|
|
||||||
|
(gptel-make-tool
|
||||||
|
:name "read_file"
|
||||||
|
:description "Read the contents of a file and return as text"
|
||||||
|
:function (lambda (filepath)
|
||||||
|
(condition-case err
|
||||||
|
(with-temp-buffer
|
||||||
|
(insert-file-contents (expand-file-name filepath))
|
||||||
|
(buffer-string))
|
||||||
|
(error (format "Error reading file %s: %s" filepath (error-message-string err)))))
|
||||||
|
:args (list '(:name "filepath" :type "string" :description "Path to the file to read")))
|
||||||
|
|
||||||
|
(gptel-make-tool
|
||||||
|
:name "list_directory"
|
||||||
|
:description "List contents of a directory"
|
||||||
|
:function (lambda (dirpath)
|
||||||
|
(condition-case err
|
||||||
|
(mapconcat 'identity
|
||||||
|
(directory-files (expand-file-name dirpath) nil "^[^.]")
|
||||||
|
"\n")
|
||||||
|
(error (format "Error listing directory %s: %s" dirpath (error-message-string err)))))
|
||||||
|
:args (list '(:name "dirpath" :type "string" :description "Directory path to list"))))
|
||||||
|
|
||||||
(use-package! claude-code-ide
|
(use-package! claude-code-ide
|
||||||
:defer t
|
:defer t
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
;;(format +onsave) ; automated prettiness
|
;;(format +onsave) ; automated prettiness
|
||||||
;;god ; run Emacs commands without modifier keys
|
;;god ; run Emacs commands without modifier keys
|
||||||
;;lispy ; vim for lisp, for people who don't like vim
|
;;lispy ; vim for lisp, for people who don't like vim
|
||||||
;;multiple-cursors ; editing in many places at once
|
multiple-cursors ; editing in many places at once
|
||||||
;;objed ; text object editing for the innocent
|
;;objed ; text object editing for the innocent
|
||||||
;;parinfer ; turn lisp into python, sort of
|
;;parinfer ; turn lisp into python, sort of
|
||||||
;;rotate-text ; cycle region at point between text candidates
|
;;rotate-text ; cycle region at point between text candidates
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
# zix790prors
|
|
||||||
|
|
||||||
The re-birthed NixOS install of my 2024/2025 gaming pc / workstation.
|
|
||||||
|
|
||||||
## Specs
|
|
||||||
|
|
||||||
**CPU:** Intel Core i7-14700K (20 cores, 28 threads, up to 5.6 GHz)
|
|
||||||
**Memory:** 64 GB RAM
|
|
||||||
**Storage:**
|
|
||||||
- 4TB NVMe SSD (main drive with dual-boot partitions)
|
|
||||||
- Windows 11 partition (NTFS)
|
|
||||||
- NixOS /nix/store partition (btrfs)
|
|
||||||
- Shared /games partition (btrfs, accessible from both Windows and NixOS)
|
|
||||||
**GPU:** NVIDIA GeForce RTX 4070 Ti
|
|
||||||
**Boot:** UEFI with 100MB EFI System Partition
|
|
||||||
|
|
||||||
This is a powerful all-purpose workstation optimized for gaming, 3D modeling, and development. It dual-boots Windows 11 with a shared btrfs /games partition accessible from both operating systems.
|
|
||||||
|
|
||||||
## BIOS Settings
|
|
||||||
|
|
||||||
### 2025-09-08
|
|
||||||
|
|
||||||
I underclocked the CPU today. I set the cpu/cache voltage offset to -50mV and lowered the P-Core multiplier from 56x to 50x. I was able to run Intel XTU benchmarks and the CPU stayed around 80C without any throttling kicking in, whereas before it would bounce around various cores at 100C with lots of throttling taking place.
|
|
||||||
|
|
||||||
My goals for this change are:
|
|
||||||
1. CPU longevity
|
|
||||||
2. Fan noise
|
|
||||||
3. Addressing various apps that say 100C is a "critical temperature" (though I believe the CPU is rated for up to 110C)
|
|
||||||
|
|
||||||
I'm leaving some performance on the table, but it almost feels like the default settings for this CPU were to effectively be overclocked.
|
|
||||||
31
machines/zix790prors/README.org
Normal file
31
machines/zix790prors/README.org
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
* zix790prors
|
||||||
|
|
||||||
|
The re-birthed NixOS install of my 2024/2025 gaming pc / workstation.
|
||||||
|
|
||||||
|
** Specs
|
||||||
|
- **CPU:** Intel Core i7-14700K (20 cores, 28 threads, up to 5.6 GHz)
|
||||||
|
- **Memory:** 64 GB RAM
|
||||||
|
- **Storage:**
|
||||||
|
- 4TB NVMe SSD (main drive with dual-boot partitions)
|
||||||
|
- Windows 11 partition (NTFS)
|
||||||
|
- NixOS /nix/store partition (btrfs)
|
||||||
|
- Shared /games partition (btrfs, accessible from both Windows and NixOS)
|
||||||
|
- **GPU:** NVIDIA GeForce RTX 4070 Ti
|
||||||
|
- **Boot:** UEFI with 100MB EFI System Partition
|
||||||
|
|
||||||
|
This is a powerful all-purpose workstation optimized for gaming, 3D modeling, and development. It dual-boots Windows 11 with a shared btrfs /games partition accessible from both operating systems.
|
||||||
|
*** Validation
|
||||||
|
Given the above specs, I want to run shell commands to validate them for accuracy. Use the run_shell_command tool to get the results required to complete this validation. Do not return to the user until you have exhausted your self-serve options for accomplishing your task.
|
||||||
|
|
||||||
|
** BIOS Settings
|
||||||
|
|
||||||
|
**2025-09-08**
|
||||||
|
|
||||||
|
I underclocked the CPU today. I set the cpu/cache voltage offset to -50mV and lowered the P-Core multiplier from 56x to 50x. I was able to run Intel XTU benchmarks and the CPU stayed around 80C without any throttling kicking in, whereas before it would bounce around various cores at 100C with lots of throttling taking place.
|
||||||
|
|
||||||
|
My goals for this change are:
|
||||||
|
- CPU longevity
|
||||||
|
- Fan noise
|
||||||
|
- Addressing various apps that say 100C is a "critical temperature" (though I believe the CPU is rated for up to 110C)
|
||||||
|
|
||||||
|
I'm leaving some performance on the table, but it almost feels like the default settings for this CPU were to effectively be overclocked.
|
||||||
@@ -26,6 +26,7 @@ with lib;
|
|||||||
wayland = true;
|
wayland = true;
|
||||||
};
|
};
|
||||||
nfs-mounts.enable = true;
|
nfs-mounts.enable = true;
|
||||||
|
nvidia.enable = true;
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
users.enable = true;
|
users.enable = true;
|
||||||
virtualisation.enable = true;
|
virtualisation.enable = true;
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ with lib;
|
|||||||
./desktop
|
./desktop
|
||||||
./kodi
|
./kodi
|
||||||
./nfs-mounts
|
./nfs-mounts
|
||||||
|
./nvidia
|
||||||
./printing
|
./printing
|
||||||
./spotifyd
|
./spotifyd
|
||||||
./users
|
./users
|
||||||
|
|||||||
20
roles/nvidia/default.nix
Normal file
20
roles/nvidia/default.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.roles.nvidia;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.roles.nvidia = {
|
||||||
|
enable = mkEnableOption "Enable the nvidia role";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
libva-utils
|
||||||
|
nvidia-vaapi-driver
|
||||||
|
nvtopPackages.nvidia
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user