diff --git a/flake.lock b/flake.lock index 95059bb..f5f5e73 100644 --- a/flake.lock +++ b/flake.lock @@ -261,14 +261,17 @@ ], "monolithic": [ "lancache-monolithic" + ], + "nixpkgs": [ + "nixpkgs" ] }, "locked": { - "lastModified": 1733252407, - "narHash": "sha256-AtAk2sAwNsYx52U0inQWUkq0Ml/6gH6jLMsQghgwLzk=", + "lastModified": 1747741108, + "narHash": "sha256-ifOP3JC1kgvJURERwLIiD/NbpkrdfA3++oMOqJKaHuU=", "owner": "Mop-u", "repo": "nix-lancache", - "rev": "a4ebafef806d791bb56ccb1c0bc435e7ac618541", + "rev": "e88a98463f3845bc355e2e8d41e0b8e48afecc70", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 23ce571..45b472f 100644 --- a/flake.nix +++ b/flake.nix @@ -44,6 +44,7 @@ url = "github:Mop-u/nix-lancache"; inputs.cache-domains.follows = "lancache-domains"; inputs.monolithic.follows = "lancache-monolithic"; + inputs.nixpkgs.follows = "nixpkgs"; }; nonfree-fonts = { url = "github:Mop-u/nonfree-fonts"; diff --git a/hosts/tsumugi/lancache.nix b/hosts/tsumugi/lancache.nix index 11b2f52..1e22bef 100644 --- a/hosts/tsumugi/lancache.nix +++ b/hosts/tsumugi/lancache.nix @@ -6,7 +6,7 @@ ... }: { - lancache.dns = { + services.lancache.dns = { enable = true; forwarders = [ "10.0.4.1" @@ -23,12 +23,13 @@ ]; }; - lancache.cache = { + services.lancache.cache = { enable = true; resolvers = [ "10.0.4.1" ]; cacheDiskSize = "8000g"; cacheIndexSize = "2000m"; cacheDir = "/mnt/lancache"; + logDir = "/mnt/lancache/log"; }; services.resolved.extraConfig = '' DNSStubListener=no