fix: dedupe offlineimap python file

This commit is contained in:
Benjamin Bädorf 2023-12-01 15:12:59 +01:00
parent fa4c986d44
commit 52717da2db
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
2 changed files with 1 additions and 10 deletions

View file

@ -19,7 +19,7 @@ in {
home-manager.users."${psCfg.user.name}" = {
programs.offlineimap = {
enable = true;
pythonFile = builtins.readFile ./offlineimap.py;
pythonFile = builtins.readFile ./.config/offlineimap/functions.py;
};
xdg.configFile."mutt/muttrc".source = ./.config/mutt/muttrc;

View file

@ -1,9 +0,0 @@
#! /usr/bin/env python2
import os
import subprocess
def get_env(key):
return os.getenv(key)
def get_secret(*attributes):
return subprocess.check_output(["secret-tool", "lookup"] + list(attributes))