My personal collection of Nix packages. Right now there are only fonts.
- Template and basic explanation
- A really good example by Christian Kampka
- Another good example from Daniel Barlow
- Where all the nixpkgs fonts are declared
- Fetchers - functions to get the files
Based on the instructions from the Kampka repo, try adding the following in the main body of your configuration.nix
:
nixpkgs.config.packageOverrides = pkgs: {
justinhs = pkgs.callPackage (import (builtins.fetchGit {
url = "https://github.com/justinhschaaf/nix-packages";
})) {};
};
For a flake, add the following input:
justinhs-packages.url = "github:justinhschaaf/nix-packages/main";
Then, add the following to your outputs:
outputs = { self, nixpkgs, ... }@inputs:
let
jspkgs = import justinhs-packages { inherit system; };
in
{
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit jspkgs; };
};
};
See my config for a fully functional flake example.
Run nix-build -A <package>
, replacing <package>
with the package you want to build. This question mostly exists for me as I'd forget without it.
- Introversion
- Fear of my bad work being judged and depended on by real people
- I'd have more of an obligation to maintain it