Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

blitz/tuxedo-nixos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is abandoned!

                  _  /)
                 mo / )
                 |/)\)
                  /\_
                  \__|=
                 (    )
                 __)(__
           _____/      \\_____
          |  _     ___   _   ||
          | | \     |   | \  ||
          | |  |    |   |  | ||
          | |_/     |   |_/  ||
          | | \     |   |    ||
          | |  \    |   |    ||
          | |   \. _|_. | .  ||
          |                  ||
          |  name goes here  ||
          |                  ||
  *       | *   **    * **   |**      **
   \))ejm97/.,(//,,..,,\||(,,.,\\,.((//

Consider using tuxedo-rs as a replacement. It has less features, but should get the job done well enough. Alternatively, please feel free to fork this repo.

Tuxedo Control Center for NixOS

Build

Overview

This repository provides a Nix derivation for the Tuxedo Control Center until it is packaged in Nixpkgs (see NixOS/nixpkgs#132206).

Tuxedo is a German laptop manufacturer that provides Linux-friendly laptops. Their system control is done via an app called "Tuxedo Control Center" (TCC). This open source app provides fan control settings among other things. Without this app, the Tuxedo laptops default to very noisy fan control settings. It lives on Github.

Usage

To enable Tuxedo Control Center, add the module from this repository to your /etc/nixos/configuration.nix.

Option 1: Stable Nix

{ config, pkgs, ... }:
let
  tuxedo = import (builtins.fetchTarball "https://github.com/blitz/tuxedo-nixos/archive/master.tar.gz");
in {

 # ...

 imports = [
   tuxedo.module
 ];

 hardware.tuxedo-control-center.enable = true;
}

Option 2: Nix Flake

This repository is a Nix Flake. As such, it exports its module in a way that makes it somewhat convenient to use in your Flakes-enabled NixOS configuration.

First enable the module in your flake.nix:

{
  inputs = {
	nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";

	# ...

	tuxedo-nixos = {
	  url = "github:blitz/tuxedo-nixos";

	  # Avoid pulling in the nixpkgs that we pin in the tuxedo-nixos repo.
	  # This should give the least surprises and saves on disk space.
	  inputs.nixpkgs.follows = "nixpkgs";
	};
  };

  outputs = { self, nixpkgs, tuxedo-nixos }: {
	nixosConfigurations = {
	  your-system = nixpkgs.lib.nixosSystem {

	  # ...

	  modules = [
		./configuration.nix
		tuxedo-nixos.nixosModules.default

		# ...
	  ];

	  # ...

	  };
	};
  };
}

Then enable the module in configuration.nix:

  hardware.tuxedo-control-center.enable = true;

Troubleshooting

The Tuxedo Control Center currently requires an outdated Electron version, which can break your build. There is an upstream issue that tracks this.

Until this is fixed follow the instructions that the failing build gives you to workaround the issue.

Updating

To update to a new version, see the updating instructions.

About

Tuxedo Control Center Derivation and Module for NixOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published