chore: fix crowdsec
This commit is contained in:
parent
5845bbb111
commit
d611a670c5
|
@ -21,10 +21,7 @@
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|
||||||
# Security enhancement.
|
# Security enhancement.
|
||||||
crowdsec = {
|
crowdsec.url = "git+https://codeberg.org/kampka/nix-flake-crowdsec.git";
|
||||||
url = "git+https://codeberg.org/kampka/nix-flake-crowdsec.git";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Our personal flakes
|
# Our personal flakes
|
||||||
nixvim.url = "git+https://git.sajenim.dev/jasmine/nvim.nix.git";
|
nixvim.url = "git+https://git.sajenim.dev/jasmine/nvim.nix.git";
|
||||||
|
|
|
@ -23,6 +23,7 @@ in {
|
||||||
|
|
||||||
services.crowdsec = {
|
services.crowdsec = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = inputs.crowdsec.packages."x86_64-linux".crowdsec;
|
||||||
allowLocalJournalAccess = true;
|
allowLocalJournalAccess = true;
|
||||||
enrollKeyFile = config.age.secrets.enrollment-key.path;
|
enrollKeyFile = config.age.secrets.enrollment-key.path;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -35,6 +36,7 @@ in {
|
||||||
|
|
||||||
services.crowdsec-firewall-bouncer = {
|
services.crowdsec-firewall-bouncer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = inputs.crowdsec.packages."x86_64-linux".crowdsec-firewall-bouncer;
|
||||||
settings = {
|
settings = {
|
||||||
api_key = "2025f0be-35ca-406c-8737-810321c918c2";
|
api_key = "2025f0be-35ca-406c-8737-810321c918c2";
|
||||||
api_url = "http://localhost:${port}";
|
api_url = "http://localhost:${port}";
|
||||||
|
|
Loading…
Reference in a new issue