nixos/services.eternal-terminal: remove with lib;
This commit is contained in:
committed by
Jörg Thalheim
parent
6233a59db3
commit
19e88959ef
@@ -1,7 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.services.eternal-terminal;
|
||||
@@ -16,11 +13,11 @@ in
|
||||
|
||||
services.eternal-terminal = {
|
||||
|
||||
enable = mkEnableOption "Eternal Terminal server";
|
||||
enable = lib.mkEnableOption "Eternal Terminal server";
|
||||
|
||||
port = mkOption {
|
||||
port = lib.mkOption {
|
||||
default = 2022;
|
||||
type = types.port;
|
||||
type = lib.types.port;
|
||||
description = ''
|
||||
The port the server should listen on. Will use the server's default (2022) if not specified.
|
||||
|
||||
@@ -28,25 +25,25 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
verbosity = mkOption {
|
||||
verbosity = lib.mkOption {
|
||||
default = 0;
|
||||
type = types.enum (lib.range 0 9);
|
||||
type = lib.types.enum (lib.range 0 9);
|
||||
description = ''
|
||||
The verbosity level (0-9).
|
||||
'';
|
||||
};
|
||||
|
||||
silent = mkOption {
|
||||
silent = lib.mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
If enabled, disables all logging.
|
||||
'';
|
||||
};
|
||||
|
||||
logSize = mkOption {
|
||||
logSize = lib.mkOption {
|
||||
default = 20971520;
|
||||
type = types.int;
|
||||
type = lib.types.int;
|
||||
description = ''
|
||||
The maximum log size.
|
||||
'';
|
||||
@@ -56,7 +53,7 @@ in
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# We need to ensure the et package is fully installed because
|
||||
# the (remote) et client runs the `etterminal` binary when it
|
||||
|
||||
Reference in New Issue
Block a user