accountservice: add dbus and systemd services
Enable by default with gnome3.
This commit is contained in:
@@ -96,6 +96,7 @@
|
|||||||
./services/databases/postgresql.nix
|
./services/databases/postgresql.nix
|
||||||
./services/databases/virtuoso.nix
|
./services/databases/virtuoso.nix
|
||||||
./services/databases/monetdb.nix
|
./services/databases/monetdb.nix
|
||||||
|
./services/desktops/accountservice.nix
|
||||||
./services/games/ghost-one.nix
|
./services/games/ghost-one.nix
|
||||||
./services/games/minecraft-server.nix
|
./services/games/minecraft-server.nix
|
||||||
./services/hardware/acpid.nix
|
./services/hardware/acpid.nix
|
||||||
|
|||||||
@@ -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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@@ -22,6 +22,7 @@ in {
|
|||||||
# Enable helpful DBus services.
|
# Enable helpful DBus services.
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
services.udisks2.enable = true;
|
services.udisks2.enable = true;
|
||||||
|
services.accounts-daemon.enable = true;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
services.upower.enable = config.powerManagement.enable;
|
services.upower.enable = config.powerManagement.enable;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, intltool, libtool, gobjectIntrospection, polkit }:
|
{ stdenv, fetchurl, pkgconfig, glib, intltool
|
||||||
|
, libtool, gobjectIntrospection, polkit, systemd }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "accountsservice-0.6.35";
|
name = "accountsservice-0.6.35";
|
||||||
@@ -8,6 +9,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0f1hzl6hw56xvwgmd4yvmdyj15xj1fafw45pzv3qarww7h0wg8b5";
|
sha256 = "0f1hzl6hw56xvwgmd4yvmdyj15xj1fafw45pzv3qarww7h0wg8b5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig glib intltool libtool gobjectIntrospection polkit ];
|
buildInputs = [ pkgconfig glib intltool libtool
|
||||||
|
gobjectIntrospection polkit systemd ];
|
||||||
|
|
||||||
|
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user