about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFelix Buehler2024-08-24 22:05:46 +0200
committerFelix Buehler2024-08-30 23:00:52 +0200
commit4e1b387f248f60ee43c0806f962b36027744b71f (patch)
treeb428c7ccdcff287d1ea20171aea1c27f589a4b43 /nixos
parent118d8962d3bf6f2ca44f855a840df4629828d527 (diff)
nixos/services.leaps: remove `with lib;`
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/leaps.nix19
1 files changed, 8 insertions, 11 deletions
diff --git a/nixos/modules/services/misc/leaps.nix b/nixos/modules/services/misc/leaps.nix
index c6f5a1252332..10d332fb74ad 100644
--- a/nixos/modules/services/misc/leaps.nix
+++ b/nixos/modules/services/misc/leaps.nix
@@ -1,7 +1,4 @@
 { config, pkgs, lib, ... }:
-
-with lib;
-
 let
   cfg = config.services.leaps;
   stateDir = "/var/lib/leaps/";
@@ -9,27 +6,27 @@ in
 {
   options = {
     services.leaps = {
-      enable = mkEnableOption "leaps, a pair programming service";
-      port = mkOption {
-        type = types.port;
+      enable = lib.mkEnableOption "leaps, a pair programming service";
+      port = lib.mkOption {
+        type = lib.types.port;
         default = 8080;
         description = "A port where leaps listens for incoming http requests";
       };
-      address = mkOption {
+      address = lib.mkOption {
         default = "";
-        type = types.str;
+        type = lib.types.str;
         example = "127.0.0.1";
         description = "Hostname or IP-address to listen to. By default it will listen on all interfaces.";
       };
-      path = mkOption {
+      path = lib.mkOption {
         default = "/";
-        type = types.path;
+        type = lib.types.path;
         description = "Subdirectory used for reverse proxy setups";
       };
     };
   };
 
-  config = mkIf cfg.enable {
+  config = lib.mkIf cfg.enable {
     users = {
       users.leaps = {
         uid             = config.ids.uids.leaps;