Files
nixos-dotfiles/overlays/default.nix
2025-04-13 15:09:14 +08:00

46 lines
1.1 KiB
Nix

# This file defines overlays
{ inputs, ... }:
{
# This one brings our custom packages from the 'pkgs' directory
additions = final: prev: import ../pkgs prev;
modifications = final: prev: {
cage = prev.cage.overrideAttrs {
patches = [ ./cage-specify-output-name.patch ];
};
qq = prev.qq.overrideAttrs {
preInstall = ''
gappsWrapperArgs+=(
--prefix GTK_IM_MODULE : fcitx
)
'';
};
easytier = final.master.easytier;
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.unstable'
unstable-packages = final: _prev: {
unstable = import inputs.nixpkgs-unstable {
system = final.system;
config.allowUnfree = true;
};
};
stable-packages = final: _prev: {
stable = import inputs.nixpkgs-stable {
system = final.system;
config.allowUnfree = true;
};
};
master-packages = final: _prev: {
master = import inputs.nixpkgs-master {
system = final.system;
config.allowUnfree = true;
};
};
nur-packages = inputs.nur.overlays.default;
}