mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
76672dd9e3
The package is (correctly) named 'accountsservice' (with two 's'), but the attribute and expression path lacked one 's'. Fix it.
41 lines
689 B
Nix
41 lines
689 B
Nix
# AccountsService daemon.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with 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.accountsservice ];
|
|
|
|
services.dbus.packages = [ pkgs.accountsservice ];
|
|
|
|
systemd.packages = [ pkgs.accountsservice ];
|
|
};
|
|
|
|
}
|