17 lines
424 B
Nix
17 lines
424 B
Nix
|
{ lib, config, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
let
|
||
|
mkPackage = path: (mkOption {
|
||
|
type = types.package;
|
||
|
default = (pkgs.callPackage path) {};
|
||
|
description = (mkPackage path).default.name;
|
||
|
});
|
||
|
in {
|
||
|
options.pkgs = {
|
||
|
# Add all custom packages
|
||
|
wqy-zenhei = mkPackage ./fonts/wqy-zenhei.nix;
|
||
|
wqy-microhei = mkPackage ./fonts/wqy-microhei.nix;
|
||
|
wqy-bitmapsong = mkPackage ./fonts/wqy-bitmapsong.nix;
|
||
|
};
|
||
|
}
|