2014-04-06 23:20:45 +04:00
|
|
|
# AccountsService daemon.
|
|
|
|
|
2014-04-14 18:26:48 +04:00
|
|
|
{ config, lib, pkgs, ... }:
|
2014-04-06 23:20:45 +04:00
|
|
|
|
2014-04-14 18:26:48 +04:00
|
|
|
with lib;
|
2014-04-06 23:20:45 +04:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### 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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|