17 lines
357 B
Nix
17 lines
357 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf;
|
|
inherit (lib.lists) any elem;
|
|
hasFunction = f: elem f config.systemModules.host.function;
|
|
in
|
|
|
|
{
|
|
config = mkIf (any hasFunction ["workstation" "gaming"]) {
|
|
services.dbus = {
|
|
enable = true;
|
|
packages = with pkgs; [ dconf gcr udisks2 ];
|
|
implementation = "broker";
|
|
};
|
|
};
|
|
}
|