nixos-configs/scopedPackages/default.nix

36 lines
836 B
Nix
Raw Normal View History

{
inputs ? {},
mkVersion ? {},
pkgs ? {},
description ? false,
}: let
inherit (pkgs.lib) recurseIntoAttrs;
mkScope = file: desc:
if description
then desc
else
recurseIntoAttrs
(pkgs.callPackage file ({inherit mkVersion;} // inputs));
in {
dracula = mkScope ./dracula ''
Custom derivations that each represent an app's Dracula Theme.
'';
firefoxAddons = mkScope ./firefox-addons ''
Every extensions I use in my firefox module.
'';
hass-components = mkScope ./hass-components ''
Components I use for Home-Assistant that aren't in nixpkgs.
'';
lovelace-components = mkScope ./lovelace-components ''
Lovelace components I use for Home-Assistant that aren't in nixpkgs.
'';
mpvScripts = mkScope ./mpv-scripts ''
MPV scripts I use that aren't in nixpkgs.
'';
}