mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/services.gsignond: remove with lib;
This commit is contained in:
parent
b7a963841c
commit
42f3c52358
@ -1,15 +1,11 @@
|
||||
# Accounts-SSO gSignOn daemon
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
package = pkgs.gsignond.override { plugins = config.services.gsignond.plugins; };
|
||||
in
|
||||
{
|
||||
|
||||
meta.maintainers = teams.pantheon.members;
|
||||
meta.maintainers = lib.teams.pantheon.members;
|
||||
|
||||
###### interface
|
||||
|
||||
@ -17,8 +13,8 @@ in
|
||||
|
||||
services.gsignond = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable gSignOn daemon, a DBus service
|
||||
@ -26,8 +22,8 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
plugins = mkOption {
|
||||
type = types.listOf types.package;
|
||||
plugins = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [];
|
||||
description = ''
|
||||
What plugins to use with the gSignOn daemon.
|
||||
@ -37,7 +33,7 @@ in
|
||||
};
|
||||
|
||||
###### implementation
|
||||
config = mkIf config.services.gsignond.enable {
|
||||
config = lib.mkIf config.services.gsignond.enable {
|
||||
environment.etc."gsignond.conf".source = "${package}/etc/gsignond.conf";
|
||||
services.dbus.packages = [ package ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user