liminix/modules/base.nix

23 lines
483 B
Nix
Raw Normal View History

2022-09-25 10:22:15 +00:00
{ lib, ...}:
2022-09-26 10:46:09 +00:00
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;
};
2022-09-25 10:22:15 +00:00
in {
options = {
systemPackages = mkOption {
type = types.listOf types.package;
};
services = mkOption {
2022-09-26 10:46:09 +00:00
type = types.attrsOf type_service;
2022-09-25 10:22:15 +00:00
};
kernel = mkOption {
type = types.anything;
};
};
}