about summary refs log tree commit diff
path: root/nixos/modules/services/networking/clatd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/networking/clatd.nix')
-rw-r--r--nixos/modules/services/networking/clatd.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/nixos/modules/services/networking/clatd.nix b/nixos/modules/services/networking/clatd.nix
index 76e0c130ca466..09f7fdfb6e9e9 100644
--- a/nixos/modules/services/networking/clatd.nix
+++ b/nixos/modules/services/networking/clatd.nix
@@ -1,6 +1,4 @@
 { config, lib, pkgs, ... }:
-
-with lib;
 let
   cfg = config.services.clatd;
 
@@ -11,16 +9,16 @@ in
 {
   options = {
     services.clatd = {
-      enable = mkEnableOption "clatd";
+      enable = lib.mkEnableOption "clatd";
 
-      package = mkPackageOption pkgs "clatd" { };
+      package = lib.mkPackageOption pkgs "clatd" { };
 
-      settings = mkOption {
-        type = types.submodule ({ name, ... }: {
+      settings = lib.mkOption {
+        type = lib.types.submodule ({ name, ... }: {
           freeformType = settingsFormat.type;
         });
         default = { };
-        example = literalExpression ''
+        example = lib.literalExpression ''
           {
             plat-prefix = "64:ff9b::/96";
           }
@@ -32,7 +30,7 @@ in
     };
   };
 
-  config = mkIf cfg.enable {
+  config = lib.mkIf cfg.enable {
     systemd.services.clatd = {
       description = "464XLAT CLAT daemon";
       documentation = [ "man:clatd(8)" ];
@@ -43,7 +41,6 @@ in
 
       serviceConfig = {
         ExecStart = "${cfg.package}/bin/clatd -c ${configFile}";
-        startLimitIntervalSec = 0;
 
         # Hardening
         CapabilityBoundingSet = [