From 1486284f4697d4d0120687039589396900f6f451 Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 6 Jul 2023 12:35:33 +0900 Subject: [PATCH] test --- configuration.nix | 3 ++- services/fail2ban.nix | 5 ----- services/telegraf.nix | 5 +++++ software/firefox.nix | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index 9d58f15b..a269b923 100644 --- a/configuration.nix +++ b/configuration.nix @@ -49,7 +49,7 @@ networkmanager = { enable = true; }; - + enableIPv6 = false; firewall = { enable = true; @@ -82,6 +82,7 @@ isNormalUser = true; description = "Albert J. Copeland"; extraGroups = [ "networkmanager" "wheel" ]; + # passwordFile = /run/secrets/albert-pass }; # Enable flakes: https://nixos.wiki/wiki/Flakes diff --git a/services/fail2ban.nix b/services/fail2ban.nix index b0e516a8..1fe307b5 100644 --- a/services/fail2ban.nix +++ b/services/fail2ban.nix @@ -13,9 +13,4 @@ overalljails = true; # Calculate the bantime based on all the violations }; }; - - # The SystemD Unit file configuration - systemd.services.fail2ban = { - postStart = "sleep 2 && chmod o+r /var/run/fail2ban/fail2ban.socket"; - }; } \ No newline at end of file diff --git a/services/telegraf.nix b/services/telegraf.nix index c5b475da..d1316844 100644 --- a/services/telegraf.nix +++ b/services/telegraf.nix @@ -7,6 +7,11 @@ restartUnits = [ "telegraf.service" ]; }; + users.users.telegraf { + extraGroups = [ "wheel" ]; + isSystemUser = true; + }; + # Install the package environment.systemPackages = with pkgs; [ lm_sensors diff --git a/software/firefox.nix b/software/firefox.nix index 09d072d0..a2b90638 100644 --- a/software/firefox.nix +++ b/software/firefox.nix @@ -35,4 +35,4 @@ "browser.tabs.firefox-view" = false; }; }; -} +} \ No newline at end of file