diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2026-06-22 15:00:28 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2026-06-22 15:00:28 -0600 |
| commit | f7035ee24daa191d9f50945aa93f96724c20fcb2 (patch) | |
| tree | 053c4eca54be292c6a220acf328c05518ece99c7 | |
| parent | 834904a3a6aaade8c70dd3ed9c5806c4dd3937aa (diff) | |
pkgs.lib no longer necessary
| -rw-r--r-- | machines/biski/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/machines/biski/default.nix b/machines/biski/default.nix index 8891eae..238ba66 100644 --- a/machines/biski/default.nix +++ b/machines/biski/default.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running `nixos-help`). -{ config, pkgs, ... }: +{ config, lib, ... }: { imports = @@ -40,7 +40,7 @@ services.journald.forwardToSyslog = false; environment.etc = { - "fail2ban/action.d/routeros.local".text = pkgs.lib.mkDefault (pkgs.lib.mkAfter '' + "fail2ban/action.d/routeros.local".text = lib.mkDefault (lib.mkAfter '' [Init] # SSH credentials to use to log into the router @@ -68,7 +68,7 @@ ''); # Defines a filter for Mikrotik login failures by reading rsyslog - "fail2ban/filter.d/routeros-rsyslog-sshd.local".text = pkgs.lib.mkDefault (pkgs.lib.mkAfter '' + "fail2ban/filter.d/routeros-rsyslog-sshd.local".text = lib.mkDefault (lib.mkAfter '' [Definition] _router = (<F-ROUTER>[a-zA-Z0-9.-]+</F-ROUTER>) failregex = ^\s?<_router> .* login failure for user .* from <HOST> via ssh |
