accountservice: add dbus and systemd services

Enable by default with gnome3.
This commit is contained in:
Luca Bruno 2014-04-06 21:20:45 +02:00
parent 65c46befcf
commit 06614031d6
4 changed files with 47 additions and 2 deletions

View file

@ -96,6 +96,7 @@
./services/databases/postgresql.nix
./services/databases/virtuoso.nix
./services/databases/monetdb.nix
./services/desktops/accountservice.nix
./services/games/ghost-one.nix
./services/games/minecraft-server.nix
./services/hardware/acpid.nix

View file

@ -0,0 +1,40 @@
# 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 ];
};
}

View file

@ -22,6 +22,7 @@ in {
# Enable helpful DBus services.
security.polkit.enable = true;
services.udisks2.enable = true;
services.accounts-daemon.enable = true;
networking.networkmanager.enable = true;
services.upower.enable = config.powerManagement.enable;

View file

@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, glib, intltool, libtool, gobjectIntrospection, polkit }:
{ stdenv, fetchurl, pkgconfig, glib, intltool
, libtool, gobjectIntrospection, polkit, systemd }:
stdenv.mkDerivation rec {
name = "accountsservice-0.6.35";
@ -8,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "0f1hzl6hw56xvwgmd4yvmdyj15xj1fafw45pzv3qarww7h0wg8b5";
};
buildInputs = [ pkgconfig glib intltool libtool gobjectIntrospection polkit ];
buildInputs = [ pkgconfig glib intltool libtool
gobjectIntrospection polkit systemd ];
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
}