22 lines
350 B
Nix
22 lines
350 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.modules.sysd.session.dbus;
|
|
in {
|
|
options = {
|
|
modules.sysd.session.dbus.enable = mkEnableOption "Enables dbus";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
services.dbus = {
|
|
enable = true;
|
|
packages = with pkgs; [
|
|
gcr
|
|
];
|
|
};
|
|
};
|
|
}
|