Files
NixOsConfig/modules/flake/overlays.nix
T
faumaray 079cceb554 update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-10-29 16:02:14 +03:00

46 lines
1.6 KiB
Nix

# Overlays exposed as `overlays.<name>`; `default` composes all of them and is
# applied to every host (modules/core/nixpkgs.nix), to the installer and to the
# per-system package set (modules/flake/packages.nix).
{ inputs, lib, ... }:
{
flake.overlays = rec {
# Hyprland's own upstream overlays, built from the pinned `hyprland` flake
# input against our nixpkgs. Upstream `default` omits the hyprwm libraries
# (aquamarine, hyprutils, hyprland-guiutils, ...); `hyprland-packages`
# carries them plus Hyprland, `hyprland-extras` adds the matching portal.
hyprland = lib.composeManyExtensions [
inputs.hyprland.overlays.hyprland-packages
inputs.hyprland.overlays.hyprland-extras
];
# Noctalia from its flake. That flake does not follow our nixpkgs, so the
# store path matches noctalia.cachix.org and is downloaded, not compiled.
noctalia = final: _prev: {
noctalia = inputs.noctalia.packages.${final.stdenv.hostPlatform.system}.default;
};
# This repository's own packages (../../pkgs): install and key helpers, `dev`.
additions =
final: _prev:
import ../../pkgs {
pkgs = final;
inherit inputs;
};
# Changes to existing nixpkgs packages. They apply system-wide and to
# home-manager (useGlobalPkgs = true).
modifications = _final: prev: {
# btop with AMD GPU monitoring (ROCm SMI) for the Radeon card.
btop = prev.btop.override { rocmSupport = true; };
};
default = lib.composeManyExtensions [
hyprland
noctalia
additions
modifications
inputs.vintagestory-nix.overlays.default
];
};
}