Monorepo for sharing my most commonly used Nix expressions between hostsç
Find a file
NotAShelf bf5472bd2c
Some checks are pending
Build / Find uncached packages (push) Waiting to run
Build / build-uncached (push) Blocked by required conditions
Run Checks / check (NIXPKGS_ALLOW_INSECURE=1 NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix flake check --accept-flake-config) (push) Waiting to run
Run Checks / check (nix run .#alejandra-custom -- -c . -e ./npins) (push) Waiting to run
Run Checks / build (push) Blocked by required conditions
Nix / nix (push) Waiting to run
docs: clarify purpose of the repository
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I88b3b2a83124d5c90c8c4094f727e08d6a6a6964
2026-01-12 10:48:25 +03:00
.github ci: allow unsupported system in CI 2025-12-29 14:53:34 +03:00
npins [CI]: update npins 2025-12-23 02:06:25 +00:00
pkgs btop: init with process normalization patch 2025-12-29 14:48:15 +03:00
.editorconfig meta: add editorconfig 2024-07-21 23:51:28 +03:00
.envrc flake: direnv 2023-11-07 16:02:21 +03:00
.gitattributes meta: don't diff churn 2025-06-11 12:03:13 +03:00
.gitignore initial commit 2023-11-03 10:25:58 +03:00
default.nix nix: simplify flake-compat exp 2025-06-11 12:04:24 +03:00
flake.lock flake: add microfetch 2026-01-12 10:48:24 +03:00
flake.nix flake: add microfetch 2026-01-12 10:48:24 +03:00
LICENSE add license 2023-11-03 10:54:40 +03:00
README.md docs: clarify purpose of the repository 2026-01-12 10:48:25 +03:00
shell.nix flake: make nix-shell consistent with nix develop 2024-07-21 23:51:45 +03:00

🌙 nyxexprs

Welcome to Nyxexprs! This is my personal package collection and overlay containing things that I cannot exactly upstream to Nixpkgs, or sometimes the things I just don't feel like contributing. This has been extracted from my personal monorepo, which is my NixOS configuration, for the sake providing a public cache for my software and a centralized packaging solution to things I have created or felt like packaging. It also contains packages I've refactored out of my personal NixOS configuration, Nyx (hence the name "nyxexprs.")

Note

This repository is kept up to date with GitHub workflows, and npins for tracking most dependencies. Flakes are used to "re-export" other flakes with a unified Nixpkgs. Duplicates are detected via Flint, which is packaged here :)

Usage

All packages in Nyxexprs are exposed in the flake outputs, under packages. An overlay is also provided through flake-parts' easy-overlay module

Flakes

# In your flake.nix

{
  inputs = {
    # Your Nixpkgs input
    nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";

    # Add an input as such. Do NOT add the "follows" line (a typical flakes
    # pattern) if you intend to use the binary cache.
    nyxexprs.url = "github:notashelf/nyxexprs";
    
    # Other inputs
    # ...
  };
}

Then get the package you need directly from inputs

{ 
  inputs,
  ...
}: {
  # For this to be valid, you need `inputs` in the argset above and nyxexprs
  # to be in your `inputs`, as demonstrated in the flake.nix example. You 
  # will also need `inputs` to be in your `nixosSystem` call's `specialArgs`
  # or else you will not be able to access `inputs` in your modules.
  environment.systemPackages = [
    inputs.nyxexprs.packages.${pkgs.stdenv.hostPlatform.system}.tempus # example
  ];
}

Overlay

An overlay is provided. Once added, it may be consumed as follows:

{
  inputs, # needs to be in scope, e.g., with `specialArgs`
  pkgs,
  ...
}: {
  nixpkgs.overlays = [inputs.nyxexprs.overlays.default];

  # Overlays modify the `pkgs` instance. If consumed, all
  # of my packages will be appended directly to your pkgs
  # at which point you can consume them as `pkgs.package`
  environment.systemPackages = [
    pkgs.tempus # example package
  ];
}

Tip

If you are using Nix on a non-NixOS distro, you may nix run to try out packages, or nix profile install to install them on your system profile. If using home-manager on non-NixOS, I recommend using home.packages instead.

Binary Cache

Regardless of your setup, you may want to add the binary cache to your substituters to avoid building the provided packages on each pull. You may follow the example below to add the binary cache to your system.

{ 
  nix.settings = {
    builders-use-substitutes = true;
    substituters = [
        # Add the Nyx cache
        "https://nyx.cachix.org"
    ];

    trusted-public-keys = [
        # And the trusted public key for Nyx
        "nyx.cachix.org-1:xH6G0MO9PrpeGe7mHBtj1WbNzmnXr7jId2mCiq6hipE="

        # Other trusted public keys
        # ...
    ];
  };
}

🫂 Credits

The repository structure is mostly borrowed from @fufexan 's nix-gaming repository. Thank you fuf!

I've also borrowed some CI logic around detecting uncached packages from @diniamo, which uses GitHub workflows in niqspkgs to build and cache packages missing in Cachix.

📜 License

This project is made available under European Union Public Licence (EUPL) version 1.2. See LICENSE for more details on the exact conditions. An online copy is provided here.

Everything in this repository, including derivations and patches, are licensed under the EUPL v1.2 license only.