summary refs log blame commit diff
path: root/nixos/modules/services/desktops/accountservice.nix
blob: b21207f05a11735579f77f54a6b9562b30e4f1f0 (plain) (tree)







































                                                                               
# AccountsService daemon.

{ config, pkgs, ... }:

with pkgs.lib;

{

  ###### interface

  options = {

    services.accounts-daemon = {

      enable = mkOption {
        type = types.bool;
        default = false;
        description = ''
          Whether to enable AccountsService, a DBus service for accessing
          the list of user accounts and information attached to those accounts.
        '';
      };

    };

  };


  ###### implementation

  config = mkIf config.services.accounts-daemon.enable {

    environment.systemPackages = [ pkgs.accountservice ];

    services.dbus.packages = [ pkgs.accountservice ];

    systemd.packages = [ pkgs.accountservice ];
  };

}