From a9748cc11851d5c2cd44271291e930db04efde82 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 30 Aug 2024 00:47:07 +0200 Subject: [PATCH] nixos/services.cachefilesd: remove `with lib;` --- .../network-filesystems/cachefilesd.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/network-filesystems/cachefilesd.nix b/nixos/modules/services/network-filesystems/cachefilesd.nix index 8db0fdb8a417..b1c13cf41501 100644 --- a/nixos/modules/services/network-filesystems/cachefilesd.nix +++ b/nixos/modules/services/network-filesystems/cachefilesd.nix @@ -1,7 +1,4 @@ { config, pkgs, lib, ... }: - -with lib; - let cfg = config.services.cachefilesd; @@ -17,20 +14,20 @@ in options = { services.cachefilesd = { - enable = mkOption { - type = types.bool; + enable = lib.mkOption { + type = lib.types.bool; default = false; description = "Whether to enable cachefilesd network filesystems caching daemon."; }; - cacheDir = mkOption { - type = types.str; + cacheDir = lib.mkOption { + type = lib.types.str; default = "/var/cache/fscache"; description = "Directory to contain filesystem cache."; }; - extraConfig = mkOption { - type = types.lines; + extraConfig = lib.mkOption { + type = lib.types.lines; default = ""; example = "brun 10%"; description = "Additional configuration file entries. See cachefilesd.conf(5) for more information."; @@ -41,7 +38,7 @@ in ###### implementation - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { boot.kernelModules = [ "cachefiles" ];