From 3b2a00cbe01b962c7cfca9d48378dac0505efdbe Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sat, 27 Jan 2024 15:53:27 +0100 Subject: [PATCH] add tuxedo-rs --- hosts/yodaTux/configuration.nix | 1 + modules/tuxedo-rs.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 modules/tuxedo-rs.nix diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 4ff48cd..ae4c433 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -7,6 +7,7 @@ ../../modules/nur-and-unstable.nix ../../modules/base.nix ../../modules/power-management.nix + ../../modules/tuxedo-rs.nix ../../modules/ntfs.nix ../../modules/git.nix ../../modules/zsh.nix diff --git a/modules/tuxedo-rs.nix b/modules/tuxedo-rs.nix new file mode 100644 index 0000000..fc348ac --- /dev/null +++ b/modules/tuxedo-rs.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ... }: +{ + # Much quieter CPU fan on AMD Ryzen Tuxedo laptop. + + hardware.tuxedo-rs = { + enable = true; + # Whether to enable tailor-gui, an alternative to TUXEDO Control Center, written in Rust. + # tailor-gui: Rust GUI for interacting with hardware from TUXEDO Computers. + tailor-gui.enable = true; + }; + environment.etc."tailord/fan/default.json".text = '' + [ + {"temp":50,"fan":0}, + {"temp":55,"fan":10}, + {"temp":60,"fan":20}, + {"temp":65,"fan":30}, + {"temp":70,"fan":40}, + {"temp":80,"fan":70}, + {"temp":90,"fan":100} + ] + ''; +}