Commit 0747452c6bdc

Vincent Demeester <vincent@sbr.pm>
2026-01-14 21:43:19
fix(mail): Remove unused variables (deadnix)
1 parent 18b55fd
Changed files (2)
home/common/services/goimapnotify.nix
@@ -1,17 +1,12 @@
 {
   pkgs,
   config,
-  hostname,
   ...
 }:
 let
   # Helper function to create goimapnotify config for an account
   mkAccountConfig =
     accountName: accountConfig:
-    let
-      # Determine if this is a Gmail account
-      isGmail = accountConfig.flavor or "" == "gmail.com";
-    in
     ''
       host: ${accountConfig.imap.host}
       port: ${toString (accountConfig.imap.port or 993)}
home/common/services/mail-monitor.nix
@@ -1,4 +1,4 @@
-{ pkgs, config, ... }:
+{ pkgs, ... }:
 let
   # Script to check status of all mail-related services
   mail-status = pkgs.writeShellScriptBin "mail-status" ''
@@ -187,7 +187,9 @@ in
   # Optional: Enable failure notifications via systemd
   # This will log to journal when services fail
   systemd.user.services.imapfilter.Service.OnFailure = [ "mail-service-failure@%n.service" ];
-  systemd.user.services."goimapnotify-icloud".Service.OnFailure = [ "mail-service-failure@%n.service" ];
+  systemd.user.services."goimapnotify-icloud".Service.OnFailure = [
+    "mail-service-failure@%n.service"
+  ];
 
   # Service to handle failures
   systemd.user.services."mail-service-failure@" = {