mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
accountservice: add dbus and systemd services
Enable by default with gnome3.
This commit is contained in:
parent
65c46befcf
commit
06614031d6
@ -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
|
||||
|
40
nixos/modules/services/desktops/accountservice.nix
Normal file
40
nixos/modules/services/desktops/accountservice.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
|
@ -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" ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user