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