mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-12 16:03:32 +00:00
nixos/services.cachefilesd: remove with lib;
This commit is contained in:
parent
5f44beaebb
commit
a9748cc118
@ -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" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user