From 455cc8cf1c768a1d85c30ea102c574cc77663101 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sun, 27 Aug 2023 19:10:14 +0200 Subject: [PATCH] offlineimap: cleanup unused bindings --- modules/programs/offlineimap-accounts.nix | 2 +- modules/programs/offlineimap.nix | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/modules/programs/offlineimap-accounts.nix b/modules/programs/offlineimap-accounts.nix index afc7a0199..bbbc057a9 100644 --- a/modules/programs/offlineimap-accounts.nix +++ b/modules/programs/offlineimap-accounts.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ lib, ... }: with lib; diff --git a/modules/programs/offlineimap.nix b/modules/programs/offlineimap.nix index e3a47817f..1a1845c0f 100644 --- a/modules/programs/offlineimap.nix +++ b/modules/programs/offlineimap.nix @@ -17,22 +17,6 @@ let in "${key} = ${value'}"; }; - # Generates a script to fetch only a specific account. - # - # Note, these scripts are not actually created and installed at the - # moment. It will need some thinking on whether this is a good idea - # and whether other modules should have some similar functionality. - # - # Perhaps have a single tool `email` that wraps the command? - # Something like - # - # $ email - genOfflineImapScript = account: - with account; - pkgs.writeShellScriptBin "offlineimap-${name}" '' - exec ${cfg.package}/bin/offlineimap -a${account.name} "$@" - ''; - accountStr = account: with account; let