dot.nix/overlays/default.nix
Chris Toph 0d58cef9d8 Adds overlays and restructures package directories
- Applies overlays in flake to make custom packages available
- Replaces recursive package import with explicit package scanning
- Moves packages from `pkgs/common` to `pkgs/` and updates overlay paths
- Updates snapraid-runner email configuration (from, host, port, credentials)
2025-04-20 13:27:09 -04:00

51 lines
1.1 KiB
Nix

#
# This file defines overlays/custom modifications to upstream packages
#
{ inputs, ... }:
let
# Adds my custom packages
additions =
final: prev:
let
packages = prev.lib.packagesFromDirectoryRecursive {
callPackage = prev.lib.callPackageWith final;
directory = ../pkgs; # Changed from ../pkgs/common to ../pkgs
};
in
packages;
linuxModifications = final: prev: prev.lib.mkIf final.stdenv.isLinux { };
modifications = final: prev: {
# example = prev.example.overrideAttrs (oldAttrs: let ... in {
# ...
# });
};
stable-packages = final: _prev: {
stable = import inputs.nixpkgs-stable {
inherit (final) system;
config.allowUnfree = true;
};
};
unstable-packages = final: _prev: {
unstable = import inputs.nixpkgs-unstable {
inherit (final) system;
config.allowUnfree = true;
};
};
in
{
default =
final: prev:
(additions final prev)
// (modifications final prev)
// (linuxModifications final prev)
// (stable-packages final prev)
// (unstable-packages final prev);
}