Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions projects/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,29 @@ in
};
};

# TODO: port modular services to programs
program =
with types;
submodule {
options = {
module = mkOption {
type = deferredModule;
};
examples = mkOption {
type = attrsOf (nullOr example);
default = { };
};
extensions = mkOption {
type = attrsOf (nullOr plugin);
default = { };
};
links = mkOption {
type = attrsOf link;
default = { };
};
};
};

# TODO: make use of modular services https://github.com/NixOS/nixpkgs/pull/372170
service =
with types;
Expand Down