about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2024-08-27 20:43:31 +0200
committerFelix Buehler <account@buehler.rocks>2024-08-30 00:30:57 +0200
commitbb1483bbc63e9cb2e4b27a115627dcbc65afc111 (patch)
treec6dcb8f80f586e5a5047f95a69738f94ef4883e6
parent5b61b700823c3d5af23eb966c617a1ea86ba4017 (diff)
nixos/services.rsyslogd: remove `with lib;`
-rw-r--r--nixos/modules/services/logging/rsyslogd.nix21
1 files changed, 9 insertions, 12 deletions
diff --git a/nixos/modules/services/logging/rsyslogd.nix b/nixos/modules/services/logging/rsyslogd.nix
index 25b6eec5056ca..88a8ff840682e 100644
--- a/nixos/modules/services/logging/rsyslogd.nix
+++ b/nixos/modules/services/logging/rsyslogd.nix
@@ -1,7 +1,4 @@
 { config, lib, pkgs, ... }:
-
-with lib;
-
 let
 
   cfg = config.services.rsyslogd;
@@ -36,8 +33,8 @@ in
 
     services.rsyslogd = {
 
-      enable = mkOption {
-        type = types.bool;
+      enable = lib.mkOption {
+        type = lib.types.bool;
         default = false;
         description = ''
           Whether to enable syslogd.  Note that systemd also logs
@@ -45,8 +42,8 @@ in
         '';
       };
 
-      defaultConfig = mkOption {
-        type = types.lines;
+      defaultConfig = lib.mkOption {
+        type = lib.types.lines;
         default = defaultConf;
         description = ''
           The default {file}`syslog.conf` file configures a
@@ -55,8 +52,8 @@ in
         '';
       };
 
-      extraConfig = mkOption {
-        type = types.lines;
+      extraConfig = lib.mkOption {
+        type = lib.types.lines;
         default = "";
         example = "news.* -/var/log/news";
         description = ''
@@ -65,8 +62,8 @@ in
         '';
       };
 
-      extraParams = mkOption {
-        type = types.listOf types.str;
+      extraParams = lib.mkOption {
+        type = lib.types.listOf lib.types.str;
         default = [ ];
         example = [ "-m 0" ];
         description = ''
@@ -81,7 +78,7 @@ in
 
   ###### implementation
 
-  config = mkIf cfg.enable {
+  config = lib.mkIf cfg.enable {
 
     environment.systemPackages = [ pkgs.rsyslog ];