From e8252676414aa387a337282e4af7c49d465d3936 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 24 Nov 2025 17:57:34 +0530 Subject: Enable clam onaccess --- extras/notes | 2 +- modules/clamav.nix | 10 ++++++++++ modules/lockscreen.nix | 3 +-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/extras/notes b/extras/notes index 6e77796..285e10e 160000 --- a/extras/notes +++ b/extras/notes @@ -1 +1 @@ -Subproject commit 6e7779686fcedab88e763b855f2c7de7c11d4f1b +Subproject commit 285e10edbeb085b991821a7a5ae955dff079532e diff --git a/modules/clamav.nix b/modules/clamav.nix index fbfac11..144f937 100644 --- a/modules/clamav.nix +++ b/modules/clamav.nix @@ -5,6 +5,16 @@ in { services.clamav = { daemon = { inherit enable; + settings = { + OnAccessPrevention = true; + OnAccessIncludePath = [ + "/home/imsohexy/Downloads" + "/home/imsohexy/Documents" + ]; + }; + }; + clamonacc = { + inherit enable; }; scanner = { inherit enable; diff --git a/modules/lockscreen.nix b/modules/lockscreen.nix index df7588a..09c6727 100644 --- a/modules/lockscreen.nix +++ b/modules/lockscreen.nix @@ -7,8 +7,7 @@ in { services.xserver.xautolock = { enable = true; time = 30; # minutes - locker = "bslock"; - + locker = "${localPkgs.bslock}/bin/bslock"; enableNotifier = true; notify = 30; notifier = "${pkgs.libnotify}/bin/notify-send 'Locking in 30 seconds'"; -- cgit v1.3.1