provide dist dbus profile for packaging non root daemon users #2

Open
opened 2020-09-13 17:05:45 +00:00 by onny · 0 comments

Example DBus config NixOS module

  config = mkIf cfg.enable {
    services.dbus.packages = [ pkgs.thermald ];
 
    systemd.services.thermald = {
      description = "Thermal Daemon Service";
      wantedBy = [ "multi-user.target" ];
      serviceConfig = {
        ExecStart = ''
          ${pkgs.thermald}/sbin/thermald \
            --no-daemon \
            ${optionalString cfg.debug "--loglevel=debug"} \
            ${optionalString (cfg.configFile != null) "--config-file ${cfg.configFile}"} \
            --dbus-enable
        '';
      };
    };
  };
Example DBus config NixOS module ``` config = mkIf cfg.enable { services.dbus.packages = [ pkgs.thermald ]; systemd.services.thermald = { description = "Thermal Daemon Service"; wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = '' ${pkgs.thermald}/sbin/thermald \ --no-daemon \ ${optionalString cfg.debug "--loglevel=debug"} \ ${optionalString (cfg.configFile != null) "--config-file ${cfg.configFile}"} \ --dbus-enable ''; }; }; }; ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
onny/py-iwd-autocaptiveauth#2
No description provided.