Fix mistakes with secrets

This commit is contained in:
Alexander Bantyev 2021-01-13 14:45:01 +03:00
parent f47fd37634
commit a72b99b32c
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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: