summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@users.noreply.github.com>2018-08-19 17:57:54 -0400
committerworldofpeace <worldofpeace@users.noreply.github.com>2018-10-19 06:29:04 -0400
commit4f4e20bc79346708379bd235e30a90e61d1a499a (patch)
tree69e235478f00e1923e7b60f21599fbe4b7ee82e2 /nixos/modules
parent518e7eb8c22eeaca4fe6355cd75502564c09c806 (diff)
downloadnixlib-4f4e20bc79346708379bd235e30a90e61d1a499a.tar
nixlib-4f4e20bc79346708379bd235e30a90e61d1a499a.tar.gz
nixlib-4f4e20bc79346708379bd235e30a90e61d1a499a.tar.bz2
nixlib-4f4e20bc79346708379bd235e30a90e61d1a499a.tar.lz
nixlib-4f4e20bc79346708379bd235e30a90e61d1a499a.tar.xz
nixlib-4f4e20bc79346708379bd235e30a90e61d1a499a.tar.zst
nixlib-4f4e20bc79346708379bd235e30a90e61d1a499a.zip
nixos/gsignond: init
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/services/desktops/gsignond.nix43
2 files changed, 44 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 261de6955ec2..253199de5748 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -233,6 +233,7 @@
   ./services/desktops/dleyna-server.nix
   ./services/desktops/flatpak.nix
   ./services/desktops/geoclue2.nix
+  ./services/desktops/gsignond.nix
   ./services/desktops/pipewire.nix
   ./services/desktops/gnome3/at-spi2-core.nix
   ./services/desktops/gnome3/chrome-gnome-shell.nix
diff --git a/nixos/modules/services/desktops/gsignond.nix b/nixos/modules/services/desktops/gsignond.nix
new file mode 100644
index 000000000000..cf26e05d5c18
--- /dev/null
+++ b/nixos/modules/services/desktops/gsignond.nix
@@ -0,0 +1,43 @@
+# Accounts-SSO gSignOn daemon
+
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+  package = pkgs.gsignond.override { plugins = config.services.gsignond.plugins; };
+in
+{
+
+  ###### interface
+
+  options = {
+
+    services.gsignond = {
+
+      enable = mkOption {
+        type = types.bool;
+        default = false;
+        description = ''
+          Whether to enable gSignOn daemon, a DBus service
+          which performs user authentication on behalf of its clients.
+        '';
+      };
+
+      plugins = mkOption {
+        type = types.listOf types.package;
+        default = [];
+        description = ''
+          What plugins to use with the gSignOn daemon.
+        '';
+      };
+    };
+  };
+
+  ###### implementation
+  config = mkIf config.services.gsignond.enable {
+    environment.etc."gsignond.conf".source = "${package}/etc/gsignond.conf";
+    services.dbus.packages = [ package ];
+  };
+
+}