nixos/services.gsignond: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-27 20:43:04 +02:00
parent b7a963841c
commit 42f3c52358

View file

@ -1,15 +1,11 @@
# Accounts-SSO gSignOn daemon # Accounts-SSO gSignOn daemon
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib;
let let
package = pkgs.gsignond.override { plugins = config.services.gsignond.plugins; }; package = pkgs.gsignond.override { plugins = config.services.gsignond.plugins; };
in in
{ {
meta.maintainers = teams.pantheon.members; meta.maintainers = lib.teams.pantheon.members;
###### interface ###### interface
@ -17,8 +13,8 @@ in
services.gsignond = { services.gsignond = {
enable = mkOption { enable = lib.mkOption {
type = types.bool; type = lib.types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable gSignOn daemon, a DBus service Whether to enable gSignOn daemon, a DBus service
@ -26,8 +22,8 @@ in
''; '';
}; };
plugins = mkOption { plugins = lib.mkOption {
type = types.listOf types.package; type = lib.types.listOf lib.types.package;
default = []; default = [];
description = '' description = ''
What plugins to use with the gSignOn daemon. What plugins to use with the gSignOn daemon.
@ -37,7 +33,7 @@ in
}; };
###### implementation ###### implementation
config = mkIf config.services.gsignond.enable { config = lib.mkIf config.services.gsignond.enable {
environment.etc."gsignond.conf".source = "${package}/etc/gsignond.conf"; environment.etc."gsignond.conf".source = "${package}/etc/gsignond.conf";
services.dbus.packages = [ package ]; services.dbus.packages = [ package ];
}; };