mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
fix: tuxedo-rs config
This commit is contained in:
parent
5788a5e3a3
commit
51f224c834
@ -1,6 +1,15 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Much quieter CPU fan on AMD Ryzen Tuxedo laptop.
|
||||
# Much quieter CPU fan on Tuxedo AMD Ryzen laptop.
|
||||
# https://github.com/AaronErhardt/tuxedo-rs?tab=readme-ov-file#nixos
|
||||
|
||||
# Check if the configuration is still valid:
|
||||
# systemctl status tailord.service
|
||||
# #=> Starting Tuxedo Tailor hardware control service...
|
||||
# #=> INFO start_runtime: tailord: Starting tailord
|
||||
# #=> INFO start_runtime: tailord::profiles: Loaded profile at `/etc/tailord/active_profile.json`: ...
|
||||
# #=> INFO ...
|
||||
# There should be no error messages!
|
||||
|
||||
hardware.tuxedo-rs = {
|
||||
enable = true;
|
||||
@ -8,7 +17,19 @@
|
||||
# tailor-gui: Rust GUI for interacting with hardware from TUXEDO Computers.
|
||||
tailor-gui.enable = true;
|
||||
};
|
||||
environment.etc."tailord/fan/default.json".text = ''
|
||||
|
||||
environment.etc."tailord/active_profile.json".source = "/etc/tailord/profiles/custom.json";
|
||||
|
||||
environment.etc."tailord/profiles/custom.json".text = ''
|
||||
{"fans":["custom"],"leds":[{"device_name":"platform:tuxedo_keyboard","function":"kbd_backlight","profile":"custom","mode":"Monochrome"}],"performance_profile":"power_save"}
|
||||
'';
|
||||
|
||||
environment.etc."tailord/keyboard/custom.json".text = ''
|
||||
"None"
|
||||
'';
|
||||
|
||||
# https://github.com/AaronErhardt/tuxedo-rs/blob/910e73794b80843faa49a630d7c2a114daef508c/tailord/src/fancontrol/profile.rs#L122
|
||||
environment.etc."tailord/fan/custom.json".text = ''
|
||||
[
|
||||
{"temp":50,"fan":0},
|
||||
{"temp":55,"fan":10},
|
||||
|
Loading…
Reference in New Issue
Block a user