summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2023-10-07 22:01:58 +0200
committerTimo Wilken2023-10-08 15:43:51 +0200
commitd750499c0c9627d12b0b67a9a896b39c14e1688e (patch)
tree1e2924b155ad8770d234992d234697095ee415d5
parent52a5d876271b4c0b35a5c35baac62cb4d26723e0 (diff)
Install and configure nvidia-system-monitor
-rw-r--r--tw/home/files/NVSM.conf4
-rw-r--r--tw/home/lap.scm7
2 files changed, 11 insertions, 0 deletions
diff --git a/tw/home/files/NVSM.conf b/tw/home/files/NVSM.conf
new file mode 100644
index 00000000..a07a1a41
--- /dev/null
+++ b/tw/home/files/NVSM.conf
@@ -0,0 +1,4 @@
+[Graph]
+gpuColors=@Variant(\0\0\0\x90\0\0\0\v[\"#00ff00\"])
+length=120000
+updateDelay=2000
diff --git a/tw/home/lap.scm b/tw/home/lap.scm
index 5b73baa1..01ba7842 100644
--- a/tw/home/lap.scm
+++ b/tw/home/lap.scm
@@ -35,6 +35,8 @@
#:use-module (guix gexp)
#:use-module ((nongnu packages messaging)
#:select (signal-desktop))
+ #:use-module ((nongnu packages nvidia)
+ #:select (nvidia-system-monitor))
#:use-module ((nongnu packages steam-client)
#:select (steam-nvidia))
#:use-module (tw home)
@@ -105,6 +107,7 @@
;; Games
steam-nvidia ; use "steam" for non-NVIDIA Steam client
+ nvidia-system-monitor ; Qt; installs "qnvsm" binary, but no .desktop file
;; Games are installed in ~/.guix-profile instead, to make updates of the
;; home environment faster.
;; 0ad flightgear freeciv simutrans/pak128 warzone2100 widelands pioneer
@@ -119,6 +122,10 @@
(home-batsignal-configuration
(batteries '("BAT0"))))
+ ;; For `nvidia-service-monitor'.
+ (simple-service 'qnvsm-config home-xdg-configuration-files-service-type
+ `(("congard/NVSM.conf" ,(local-file "files/NVSM.conf"))))
+
(service home-restic-backup-service-type
(list (restic-backup-repository
(schedule #~"0 */2 * * *")