about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2024-08-27 20:43:32 +0200
committerFelix Buehler <account@buehler.rocks>2024-08-30 00:30:58 +0200
commit640892113aa0a2ff0f2090fd49d0cc7ed8f608ca (patch)
tree2bb1676e8674b016e1410a6f718b0c152ee19d95
parent12cf354b8384ac6bc7f24bc8fbf85e135a941d72 (diff)
nixos/services.ulogd: remove `with lib;`
-rw-r--r--nixos/modules/services/logging/ulogd.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/nixos/modules/services/logging/ulogd.nix b/nixos/modules/services/logging/ulogd.nix
index 5bd51ef88fe53..9d1d8e61231dc 100644
--- a/nixos/modules/services/logging/ulogd.nix
+++ b/nixos/modules/services/logging/ulogd.nix
@@ -1,6 +1,4 @@
 { config, lib, pkgs, ... }:
-
-with lib;
 let
   cfg = config.services.ulogd;
   settingsFormat = pkgs.formats.ini { listsAsDuplicateKeys = true; };
@@ -8,9 +6,9 @@ let
 in {
   options = {
     services.ulogd = {
-      enable = mkEnableOption "ulogd, a userspace logging daemon for netfilter/iptables related logging";
+      enable = lib.mkEnableOption "ulogd, a userspace logging daemon for netfilter/iptables related logging";
 
-      settings = mkOption {
+      settings = lib.mkOption {
         example = {
           global.stack = [
             "log1:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU"
@@ -35,8 +33,8 @@ in {
           "Configuration for ulogd. See {file}`/share/doc/ulogd/` in `pkgs.ulogd.doc`.";
       };
 
-      logLevel = mkOption {
-        type = types.enum [ 1 3 5 7 8 ];
+      logLevel = lib.mkOption {
+        type = lib.types.enum [ 1 3 5 7 8 ];
         default = 5;
         description =
           "Log level (1 = debug, 3 = info, 5 = notice, 7 = error, 8 = fatal)";
@@ -44,7 +42,7 @@ in {
     };
   };
 
-  config = mkIf cfg.enable {
+  config = lib.mkIf cfg.enable {
     systemd.services.ulogd = {
       description = "Ulogd Daemon";
       wantedBy = [ "multi-user.target" ];