diff --git a/hosts/muon/configuration.nix b/hosts/muon/configuration.nix index e670a63..107d5c3 100644 --- a/hosts/muon/configuration.nix +++ b/hosts/muon/configuration.nix @@ -38,6 +38,7 @@ in { mods.desktop.wayland.enable = false; mods.desktop.gaming.enable = true; mods.boot.enable = true; + mods.clamav.enable = true; mods.theme.enable = true; mods.theme.scheme = "woodland"; diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 6e13f3a..cbccb97 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -1,4 +1,8 @@ -{ pkgs, lib, ... }: { +{ + pkgs, + lib, + ... +}: { imports = [ ./core ./system @@ -6,6 +10,7 @@ ./theme ./server ./sops + ./security ./impermanence.nix diff --git a/modules/nixos/security/clamav.nix b/modules/nixos/security/clamav.nix new file mode 100644 index 0000000..1736546 --- /dev/null +++ b/modules/nixos/security/clamav.nix @@ -0,0 +1,18 @@ +{ + pkgs, + lib, + config, + ... +}: +with lib; { + options.mods.clamav.enable = mkEnableOption "enables clamav"; + + config = mkIf config.mods.clamav.enable { + services.clamav = { + scanner.enable = true; + updater.enable = true; + fangfrisch.enable = true; + daemon.enable = true; + }; + }; +} diff --git a/modules/nixos/security/default.nix b/modules/nixos/security/default.nix new file mode 100644 index 0000000..82614e6 --- /dev/null +++ b/modules/nixos/security/default.nix @@ -0,0 +1,9 @@ +{ + pkgs, + lib, + ... +}: { + imports = [ + ./clamav.nix + ]; +}