My collection of packages distributed as a nix flake.
Using nix flakes
{
description = "My ergo nix configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
conixpkgs = {
url = "github:cristianoliveira/nixpkgs";
flake = false;
};
};
outputs = { self, nixpkgs, conixpkgs, ... }:
{
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
# Injects conixpkgs into nixpkgs as "co"
# and then can be referenced as `pkgs.co.ergo`
nixpkgs.overlays = [
(final: prev: { co = import conixpkgs { inherit pkgs; }; })
];
})
# Exemplo of installing a package from conixpkgs
({ config, pkgs, ... }: {
environment.systemPackages = [
pkgs.co.ergoProxy
pkgs.co.funzzy
];
})
];
};
};
}