feat(dbus): add dbus service module
This commit is contained in:
parent
7679a227ac
commit
e2a517f609
2 changed files with 19 additions and 0 deletions
18
system/modules/services/dbus/default.nix
Normal file
18
system/modules/services/dbus/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.systemModules.services.dbus;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
options.systemModules.services.dbus.enable = mkEnableOption "Enable dbus system module";
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.dbus = {
|
||||||
|
enable = true;
|
||||||
|
packages = with pkgs; [ dconf gcr udisks2 ];
|
||||||
|
implementation = "broker";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./mediaServer
|
./mediaServer
|
||||||
./system76Scheduler
|
./system76Scheduler
|
||||||
|
./dbus
|
||||||
];
|
];
|
||||||
|
|
||||||
options.systemModules.services = {
|
options.systemModules.services = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue