add a type definiton for s6-rc modules
This commit is contained in:
parent
cbee488d22
commit
9902d4052b
3 changed files with 13 additions and 6 deletions
|
@ -1,12 +1,19 @@
|
|||
{ lib, ...}:
|
||||
let inherit (lib) mkEnableOption mkOption types;
|
||||
let
|
||||
inherit (lib) mkEnableOption mkOption types isDerivation hasAttr ;
|
||||
type_service = types.package // {
|
||||
name = "service";
|
||||
description = "s6-rc service";
|
||||
check = x: isDerivation x && hasAttr "serviceType" x;
|
||||
};
|
||||
|
||||
in {
|
||||
options = {
|
||||
systemPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
};
|
||||
services = mkOption {
|
||||
type = types.anything;
|
||||
type = types.attrsOf type_service;
|
||||
};
|
||||
kernel = mkOption {
|
||||
type = types.anything;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue