summary refs log tree commit diff
path: root/nixos/modules/services/desktops
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-04-06 21:20:45 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-04-08 13:39:48 +0200
commit06614031d634f2b4af90d87c140465cba0731275 (patch)
treecc8a068e4775ed337a5659ca0aa28e526065c285 /nixos/modules/services/desktops
parent65c46befcfc917025d8038d80ab1292c2c9b915d (diff)
downloadnixlib-06614031d634f2b4af90d87c140465cba0731275.tar
nixlib-06614031d634f2b4af90d87c140465cba0731275.tar.gz
nixlib-06614031d634f2b4af90d87c140465cba0731275.tar.bz2
nixlib-06614031d634f2b4af90d87c140465cba0731275.tar.lz
nixlib-06614031d634f2b4af90d87c140465cba0731275.tar.xz
nixlib-06614031d634f2b4af90d87c140465cba0731275.tar.zst
nixlib-06614031d634f2b4af90d87c140465cba0731275.zip
accountservice: add dbus and systemd services
Enable by default with gnome3.
Diffstat (limited to 'nixos/modules/services/desktops')
-rw-r--r--nixos/modules/services/desktops/accountservice.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/accountservice.nix b/nixos/modules/services/desktops/accountservice.nix
new file mode 100644
index 000000000000..b21207f05a11
--- /dev/null
+++ b/nixos/modules/services/desktops/accountservice.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 ];
+  };
+
+}