nixos/services.gateone: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-28 21:19:08 +02:00 committed by Jörg Thalheim
parent 191b68cd26
commit d0901224e1

View File

@ -1,25 +1,24 @@
{ config, lib, pkgs, ...}:
with lib;
let
cfg = config.services.gateone;
in
{
options = {
services.gateone = {
enable = mkEnableOption "GateOne server";
pidDir = mkOption {
enable = lib.mkEnableOption "GateOne server";
pidDir = lib.mkOption {
default = "/run/gateone";
type = types.path;
type = lib.types.path;
description = "Path of pid files for GateOne.";
};
settingsDir = mkOption {
settingsDir = lib.mkOption {
default = "/var/lib/gateone";
type = types.path;
type = lib.types.path;
description = "Path of configuration files for GateOne.";
};
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs.pythonPackages; [
gateone pkgs.openssh pkgs.procps pkgs.coreutils pkgs.cacert];