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