nixos/services.cachefilesd: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-30 00:47:07 +02:00
parent 5f44beaebb
commit a9748cc118

View File

@ -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" ];