refactor overlays
This commit is contained in:
parent
8694c7d81f
commit
802074f233
9 changed files with 119 additions and 124 deletions
20
overlays/default.nix
Normal file
20
overlays/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue