No description
- Nix 100%
| .github/workflows | ||
| pkgs | ||
| .envrc | ||
| .gitignore | ||
| default.nix | ||
| devshells.nix | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| nixos-module.nix | ||
| overlays.nix | ||
| README.md | ||
tssp-nix
turing-smart-screen-python by mathoudebine Nix package + NixOS module
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;
};
};
};