Nix
The repo is a Nix flake. It has every port as a package, for Linux and Apple silicon macOS, and the palette as data.
The input
Section titled “The input”inputs.gneiss = { url = "github:gneiss-theme/gneiss"; inputs.nixpkgs.follows = "nixpkgs";};The ports
Section titled “The ports”packages.<system> has one package per port:
| Package | What it is |
|---|---|
neovim |
A Neovim plugin with the gneiss colorscheme |
vscode |
The VS Code extension, gneiss-theme.gneiss |
alacritty |
An Alacritty config file with the colors, to import |
vicinae |
A Vicinae theme file |
obsidian |
The Obsidian theme’s folder, with theme.css and manifest.json |
dist |
Every rendered file, as committed in the repo; the default package |
site |
This site |
In a Home Manager module, with the flake’s inputs passed in:
{ inputs, pkgs, ... }:let gneiss = inputs.gneiss.packages.${pkgs.stdenv.hostPlatform.system};in{ programs.neovim.plugins = [ gneiss.neovim ]; programs.vscode.profiles.default.extensions = [ gneiss.vscode ]; programs.alacritty.settings.general.import = [ "${gneiss.alacritty}" ]; xdg.configFile."vicinae/themes/gneiss.toml".source = gneiss.vicinae;}The palette
Section titled “The palette”inputs.gneiss.lib.palette is
palette.toml,
parsed, for theming apps that have no port:
meta: the name and version.base: the base colors, such asbase.gneiss8.colors: each role’s hex, such ascolors.accent.
# A window manager's border, in the accent colorlet colors = inputs.gneiss.lib.palette.colors; in"rgb(${builtins.substring 1 6 colors.accent})"Working on Gneiss
Section titled “Working on Gneiss”In a clone of the repo:
nix run .#render # render colors/ and dist/ from palette.toml and templates/nix flake check # check the rendered files, contrast, the ports and this sitenix build .#site # build this site into ./result