nixos/services.gsignond: remove with lib;

This commit is contained in:
Felix Buehler
2024-08-30 00:30:43 +02:00
parent b7a963841c
commit 42f3c52358
+6 -10
View File
@@ -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 ];
};