refactor overlays

This commit is contained in:
iofq 2026-02-21 20:45:27 -06:00
parent 8694c7d81f
commit 802074f233
9 changed files with 119 additions and 124 deletions

20
overlays/default.nix Normal file
View file

@ -0,0 +1,20 @@
# https://nixos.wiki/wiki/Overlays
{ inputs, ... }:
{
additions = final: _prev: import ../pkgs final.pkgs;
modifications = final: prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.unstable'
stable-packages = final: _prev: {
nixos-stable = import inputs.nixpkgs-stable {
system = final.system;
config.allowUnfree = true;
};
};
}