Fix mistakes with secrets
This commit is contained in:
parent
f47fd37634
commit
a72b99b32c
@ -6,8 +6,8 @@
|
||||
secrets = [ "user" "token" ];
|
||||
owner = "balsoft:users";
|
||||
template = builtins.toJSON {
|
||||
yt-token = "$user";
|
||||
user = "$token";
|
||||
yt-token = "$token";
|
||||
user = "$user";
|
||||
from = {
|
||||
org = "/home/balsoft/Documents/serokell.org";
|
||||
full-file = true;
|
||||
|
@ -44,8 +44,8 @@ in {
|
||||
in ''
|
||||
interval=60
|
||||
markup=pango
|
||||
'' + genIniOrdered ([]
|
||||
# (scr "email")
|
||||
'' + genIniOrdered (
|
||||
[ (scr "email") ]
|
||||
++ [ (scrint "weather" 600) (scr "emacs") (scr "nixos") ]
|
||||
++ [ (scrint "youtrack-wage" 3600) (scrint "music" 3) (scrint "sound" 1) ] ++ [
|
||||
(scrint "cpu" 5)
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ python3, iconfont, config, ... }: ''
|
||||
#!${python3}/bin/python3
|
||||
import imaplib
|
||||
obj = imaplib.IMAP4_SSL('imap.${config.secrets.mail.host}', 993)
|
||||
obj.login("${config.secrets.mail.user}@${config.secrets.mail.host}", "${config.secrets.mail.password}")
|
||||
obj = imaplib.IMAP4_SSL('balsoft.ru', 993)
|
||||
obj.login("balsoft@balsoft.ru", "${config.secrets.gnome-keyring-envsubst-email.decrypted}")
|
||||
obj.select()
|
||||
l = len(obj.search(None, 'unseen')[1][0].split())
|
||||
if l == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user