chore: refactor flake layout
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
892c0afc60
commit
105f613c6b
6 changed files with 66 additions and 1 deletions
20
overlays/default.nix
Normal file
20
overlays/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
# Import custom packages
|
||||
additions = final: _prev: import ../pkgs final.pkgs;
|
||||
|
||||
# Add modifications here:
|
||||
modifications = final: prev: {
|
||||
# example = prev.example.overrideAttrs (oldAttrs: rec {
|
||||
# ...
|
||||
# });
|
||||
};
|
||||
|
||||
# add nixpkgs unstable (accessible through pkgs.unstable)
|
||||
unstable-packages = final: _prev: {
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
system = final.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue