diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-24 18:23:25 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-24 18:23:25 +0100 |
commit | 4f93ccb6c25d80a75a6324c341a8105502a783b9 (patch) | |
tree | d6b2eeb95656e55a87b8b74b8cbfb1ae8ff1e346 /machines/srv1/coreruleset.nix | |
parent | a8e9d5c3023c75894010401e1076391dc65ca085 (diff) | |
parent | a572639f05ebb8d88cb8fe283785edd25aa1c49d (diff) | |
download | dots-4f93ccb6c25d80a75a6324c341a8105502a783b9.tar.gz dots-4f93ccb6c25d80a75a6324c341a8105502a783b9.zip |
Merge branch 'master' of ssh://github.com/pniedzwiedzinski/dots
Diffstat (limited to 'machines/srv1/coreruleset.nix')
-rw-r--r-- | machines/srv1/coreruleset.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/machines/srv1/coreruleset.nix b/machines/srv1/coreruleset.nix new file mode 100644 index 0000000..c52c898 --- /dev/null +++ b/machines/srv1/coreruleset.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation { + pname = "coreruleset"; + version = "3.3.0"; + + src = fetchFromGitHub { + owner = "coreruleset"; + repo = "coreruleset"; + rev = "v3.3.0"; + sha256 = "sha256:10z1051iwna5x8b8cl29frs5nx3s6ip7hc4mjkgh7vkck8ly4pjm"; + }; + + installPhase = '' + mkdir $out + cp crs-setup.conf.example $out/crs-setup.conf + cp -r rules $out + for f in rules/*.conf; do + echo "Include \"$out/$f\"" >> $out/all-rules.conf + done + ''; +} |