forked from fediversity/fediversity
		
	Enable trimming of trailing whitespace as a pre-commit hook
This commit is contained in:
		
							parent
							
								
									fe0c69f6d9
								
							
						
					
					
						commit
						8ad1457763
					
				
					 4 changed files with 17 additions and 13 deletions
				
			
		|  | @ -60,6 +60,10 @@ | |||
|                 enable = true; | ||||
|                 inherit files; | ||||
|               }; | ||||
|               trim-trailing-whitespace = { | ||||
|                 enable = true; | ||||
|                 inherit files; | ||||
|               }; | ||||
|             }; | ||||
| 
 | ||||
|           devShells.default = pkgs.mkShell { | ||||
|  |  | |||
|  | @ -84,7 +84,7 @@ | |||
|         ########### here starts the automated bit ##################### | ||||
|         table inet filter { | ||||
|             chain input { | ||||
|                 type filter hook input priority 0;  | ||||
|                 type filter hook input priority 0; | ||||
|                 policy drop; | ||||
| 
 | ||||
|                 # established/related connections | ||||
|  | @ -97,7 +97,7 @@ | |||
| 
 | ||||
|                 # loopback interface | ||||
|                 iifname lo accept | ||||
|                  | ||||
| 
 | ||||
|                 # icmp | ||||
|                 ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept | ||||
|                 # Without the nd-* ones ipv6 will not work. | ||||
|  | @ -126,10 +126,10 @@ | |||
| 
 | ||||
|         table ip nat { | ||||
|             chain postrouting { | ||||
|             }    | ||||
|             } | ||||
|             chain prerouting { | ||||
|             } | ||||
|         }   | ||||
|         } | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
|  |  | |||
|  | @ -72,7 +72,7 @@ | |||
|         ########### here starts the automated bit ##################### | ||||
|         table inet filter { | ||||
|             chain input { | ||||
|                 type filter hook input priority 0;  | ||||
|                 type filter hook input priority 0; | ||||
|                 policy drop; | ||||
| 
 | ||||
|                 # established/related connections | ||||
|  | @ -85,7 +85,7 @@ | |||
| 
 | ||||
|                 # loopback interface | ||||
|                 iifname lo accept | ||||
|                  | ||||
| 
 | ||||
|                 # icmp | ||||
|                 ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept | ||||
|                 # Without the nd-* ones ipv6 will not work. | ||||
|  | @ -113,10 +113,10 @@ | |||
| 
 | ||||
|         table ip nat { | ||||
|             chain postrouting { | ||||
|             }    | ||||
|             } | ||||
|             chain prerouting { | ||||
|             } | ||||
|         }   | ||||
|         } | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ | |||
|       $wgUseImageMagick = true; | ||||
|       $wgMaxShellMemory = 524288; | ||||
|       $wgSVGMetadataCutoff = 1024*1024; | ||||
|       $wgAllowExternalImages = false;  | ||||
|       $wgAllowExternalImages = false; | ||||
| 
 | ||||
|       ## Permissions | ||||
|       $wgGroupPermissions['*']['edit'] = false; | ||||
|  | @ -139,7 +139,7 @@ | |||
|         ########### here starts the automated bit ##################### | ||||
|         table inet filter { | ||||
|             chain input { | ||||
|                 type filter hook input priority 0;  | ||||
|                 type filter hook input priority 0; | ||||
|                 policy drop; | ||||
| 
 | ||||
|                 # established/related connections | ||||
|  | @ -152,7 +152,7 @@ | |||
| 
 | ||||
|                 # loopback interface | ||||
|                 iifname lo accept | ||||
|                  | ||||
| 
 | ||||
|                 # icmp | ||||
|                 ip protocol icmp icmp type { destination-unreachable, echo-reply, echo-request, source-quench, time-exceeded } accept | ||||
|                 # Without the nd-* ones ipv6 will not work. | ||||
|  | @ -181,10 +181,10 @@ | |||
| 
 | ||||
|         table ip nat { | ||||
|             chain postrouting { | ||||
|             }    | ||||
|             } | ||||
|             chain prerouting { | ||||
|             } | ||||
|         }   | ||||
|         } | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue