new type for interface (presently just alias to service)
This commit is contained in:
@@ -28,12 +28,13 @@ in {
|
|||||||
lib = {
|
lib = {
|
||||||
types =
|
types =
|
||||||
let inherit (lib) types isDerivation;
|
let inherit (lib) types isDerivation;
|
||||||
in {
|
in rec {
|
||||||
service = types.package // {
|
service = types.package // {
|
||||||
name = "service";
|
name = "service";
|
||||||
description = "s6-rc service";
|
description = "s6-rc service";
|
||||||
check = x: isDerivation x && x ? serviceType;
|
check = x: isDerivation x && x ? serviceType;
|
||||||
};
|
};
|
||||||
|
interface = service;
|
||||||
serviceDefn = types.attrs // {
|
serviceDefn = types.attrs // {
|
||||||
name = "service-defn";
|
name = "service-defn";
|
||||||
description = "parametrisable s6-rc service definition";
|
description = "parametrisable s6-rc service definition";
|
||||||
|
Reference in New Issue
Block a user