mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
30 lines
558 B
Nix
30 lines
558 B
Nix
{ lib, ... }: {
|
|
|
|
options = {
|
|
processedToplevel = lib.mkOption {
|
|
type = lib.types.raw;
|
|
};
|
|
unprocessedNesting = lib.mkOption {
|
|
type = lib.types.raw;
|
|
};
|
|
multiple = lib.mkOption {
|
|
type = lib.types.raw;
|
|
};
|
|
priorities = lib.mkOption {
|
|
type = lib.types.raw;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
processedToplevel = lib.mkIf true 10;
|
|
unprocessedNesting.foo = throw "foo";
|
|
multiple = lib.mkMerge [
|
|
"foo"
|
|
"foo"
|
|
];
|
|
priorities = lib.mkMerge [
|
|
"foo"
|
|
(lib.mkForce "bar")
|
|
];
|
|
};
|
|
}
|