From 048208711aa9c89196b0977ca378d7064ea766a7 Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 25 Oct 2024 16:25:18 -0400 Subject: [PATCH] add dns cahce --- configuration.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/configuration.nix b/configuration.nix index 32e2b55..7829dfa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -319,6 +319,35 @@ trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; }; + services.nscd.config = '' + server-user nscd + + enable-cache passwd yes + positive-time-to-live passwd 900 + negative-time-to-live passwd 0 + shared passwd yes + + enable-cache group yes + positive-time-to-live group 900 + negative-time-to-live group 0 + shared group yes + + enable-cache netgroup yes + positive-time-to-live netgroup 900 + negative-time-to-live netgroup 0 + shared netgroup yes + + enable-cache hosts yes + positive-time-to-live hosts 900 + negative-time-to-live hosts 0 + shared hosts yes + + enable-cache services yes + positive-time-to-live services 900 + negative-time-to-live services 0 + shared services yes +''; + programs.hyprland = { enable = false; #enableNvidiaPatches = true;