sudo nix-channel --add https://samhug.github.io/nixos-overlay
sudo nix-channel --update nixos-overlay
Test build a package:
$ nix-build -E 'with import <nixpkgs> { overlays = [(import ./pkgs)]; }; pkgs.co2_logger'
This repo was modeled after https://gitlab.com/yegortimoshenko/nixos-overlay and https://github.com/jtojnar/nix-extrapkgs