2020-04-24 23:36:52 +00:00
|
|
|
# Accounts-SSO gSignOn daemon
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
package = pkgs.gsignond.override { plugins = config.services.gsignond.plugins; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
meta.maintainers = teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.gsignond = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc ''
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = [];
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc ''
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|