No description
Find a file
2025-11-21 22:06:15 +05:00
.github/workflows add flake-lock-update github workflow 2025-08-06 02:48:02 +05:00
pkgs recurseIntoAttrs was moved from pkgs.lib to lib 2025-11-21 22:06:15 +05:00
.envrc added devshell with git hooks and direnv rc file 2025-07-08 21:58:07 +05:00
.gitignore added devshell with git hooks and direnv rc file 2025-07-08 21:58:07 +05:00
default.nix rework flake to use flake-parts 2025-05-12 04:26:49 +05:00
devshells.nix added devshell with git hooks and direnv rc file 2025-07-08 21:58:07 +05:00
flake.lock flake.lock: Update 2025-10-09 06:13:13 +05:00
flake.nix added devshell with git hooks and direnv rc file 2025-07-08 21:58:07 +05:00
LICENSE Initial commit 2025-02-24 22:08:50 +05:00
nixos-module.nix reformat nixos module 2025-06-29 13:51:23 +05:00
overlays.nix overlays: fix default overlay 2025-06-29 13:26:03 +05:00
README.md Update README.md 2025-05-12 10:51:18 +05:00

tssp-nix

turing-smart-screen-python by mathoudebine Nix package + NixOS module

tssp-nix in action

Warning

This project have no support for macOS because I don't have any device with that OS. If you have supported screen and device running macOS you can help this project with PR implementing darwin module and became maintainer.

Installation

With flakes

Just add tssp-nix to your flake's inputs and import NixOS module.

{
  description = "My NixOS flake";
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    tssp = {
      url = "github:nukdokplex/tssp-nix";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.git-hooks-nix.follows = "";
    };
  };
  outputs =
    { nixpkgs, tssp, ... }:
    {
      nixosConfigurations."«hostname»" = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          tssp.nixosModules.default
          ./configuration.nix
        ];
      };
    };
}

Without flakes

Somewhere in you host configuration:

let
  tssp = pkgs.fetchFromGitHub {
    owner = "nukdokplex";
    repo = "tssp-nix";
    rev = "...";
    sha256 = "...";
  };
in
{
  imports = [ (import tssp).nixosModules.default ];
}

Note: tssp-nix is using flake-compat.

Usage

Here is example configuration:

  services.turing-smart-screen-python = {
    enable = true;
    fonts = with pkgs.tsspPackages.resources.fonts; [
      geforce
      generale-mono
      jetbrains-mono
      racespace
      roboto
      roboto-mono
    ];
    themes = with pkgs.tsspPackages.resources.themes; [
      LandscapeEarth
      Landscape6Grid
    ];
    settings = {
      config = {
        COM_PORT = "AUTO";
        THEME = "Landscape6Grid";
        HW_SENSORS = "PYTHON";
        ETH = "enp42s0";
        WLO = "enp5s0";
        CPU_FAN = "AUTO";
      };
      display = {
        REVISION = "A";
        BRIGHTNESS = 20;
        DISPLAY_REVERSE = false;
      };
    };
  };