From 61142f86fbace33e0a4d689acbe2493bcc10d623 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Wed, 6 May 2020 14:25:25 +0200 Subject: [PATCH] Remove unused folder --- home/unused/Makefile | 8 ---- home/unused/dovecot.sieve | 83 ------------------------------------ home/unused/morgenreport.nix | 28 ------------ home/unused/sort-mail.nix | 28 ------------ home/unused/update-hm.nix | 25 ----------- home/unused/urxvt.nix | 30 ------------- 6 files changed, 202 deletions(-) delete mode 100644 home/unused/Makefile delete mode 100644 home/unused/dovecot.sieve delete mode 100644 home/unused/morgenreport.nix delete mode 100644 home/unused/sort-mail.nix delete mode 100644 home/unused/update-hm.nix delete mode 100644 home/unused/urxvt.nix diff --git a/home/unused/Makefile b/home/unused/Makefile deleted file mode 100644 index b6fde8d3..00000000 --- a/home/unused/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -default: all - -all: links - -links: - ln -sfT ~/data/aktuell/it/config/nixos ~/.config/nixpkgs/config - ln -sfT data/aktuell/it/secrets/password-store ~/.password-store - ln -sfT data/aktuell/it/secrets/gnupg ~/.gnupg diff --git a/home/unused/dovecot.sieve b/home/unused/dovecot.sieve deleted file mode 100644 index 072a674a..00000000 --- a/home/unused/dovecot.sieve +++ /dev/null @@ -1,83 +0,0 @@ -require ["vnd.dovecot.duplicate", "fileinto", "regex", "imap4flags", "mailbox"]; - -if header :regex "X-spamd-result" "st-ludwig-darmstadt.de" { - keep; -} -elsif anyof ( - header :regex "X-spam" "^yes$", - header :contains "From" "paypal@mail.paypal.de", - header :contains "To" "lac@maralorn.de", - header :contains "To" "malte@maralorn.de", - header :contains "To" "maltemail@maralorn.de", - header :contains "To" "mail@maralorn.de", - header :contains "From" "promotion5@amazon.de") -{ - setflag "\\Seen"; - fileinto "Spam"; -} -elsif anyof ( - duplicate -) { - setflag "\\Seen"; - fileinto "Trash"; -} -elsif anyof ( - address :domain :is "From" [ - "maralorn.de", - "facebookmail.com" - ], - address :domain :is "From" [ - "tickets.darmstadt.ccc.de" - ], - header :contains "List-Id" [ - "hackspace.lists.darmstadt.ccc.de", - "members.lists.darmstadt.ccc.de", - "darmstadt.lists.darmstadt.ccc.de" - ] -) -{ - setflag "\\Seen"; -} -elsif anyof ( - header :is "From" "vib@vereinsknowhow.de", - address :domain :is "From" [ - "dpg-physik.de", - "physikstudenten.de" - ], - header :contains "List-Id" [ - "intern.lists.ccc.de", - "erfa.lists.ccc.de", - "ctf-announce.lists.cased.de", - "ctf-team.lists.cased.de", - "darmstadt-freifunk.net" - ], - header :contains "Subject" "Moodle TU Darmstadt: Zusammenfassung des Forums" -) -{ - setflag "\\Seen"; - fileinto :create "Move.readlater"; -} -elsif header :contains ["To", "From", "CC"] [ - "noc@karlshof.de", - "karlshof@whm.stwda.de", - "noc-karlshof@maralorn.de" - ] -{ - setflag "\\Seen"; - fileinto :create "Archiv.karlshof.noc"; -} - -elsif header :contains "List-Id" "chor.lists.tu-darmstadt.de" { - setflag "\\Seen"; - fileinto :create "Archiv.tuchor"; -} -elsif header :contains "From" "kdwachlin@web.de" { - setflag "\\Seen"; - fileinto "Archiv.unsortiert"; -} -elsif header :contains "Subject" "[VED-Wiki]" { - setflag "\\Seen"; - fileinto :create "Archiv.ved.wiki"; -} elsif header :regex "X-spamd-result" "[2-5]\.[0-9]\{2\} / 15\.00" { - setflag "\\Seen"; -} diff --git a/home/unused/morgenreport.nix b/home/unused/morgenreport.nix deleted file mode 100644 index be418d69..00000000 --- a/home/unused/morgenreport.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ pkgs, ... }: -let - morgenreport-script = pkgs.writeShellScriptBin "morgenreport" '' - cd $HOME/data/aktuell/media/ebooks/morgenreport/ - DATE=`date +%Y-%m-%d` - PATH=$PATH:/run/wrappers/bin/ - PATH=$PATH:${pkgs.imagemagickBig}/bin - PATH=$PATH:${pkgs.qt5.qtbase}/bin - PATH=$PATH:${pkgs.qt5.qtsvg}/bin - ${pkgs.calibre}/bin/ebook-convert $HOME/data/aktuell/it/code/calibre-recipes/morgenreport.recipe morgenreport-$DATE.mobi --output-profile=kindle_pw3 - echo "File created, sending to kindle now …" - echo 'Siehe Anhang' | ${pkgs.mutt}/bin/mutt -s "Morgenreport $DATE" -a morgenreport-$DATE.mobi -- maralorn@kindle.com - ''; - urls = [ "https://erdspektive.org/feed/" ]; -in { - home.packages = [ morgenreport-script ]; - systemd.user = { - services.morgenreport = { - Unit = { Description = "Send morgenreport to kindle"; }; - - Service = { - Type = "oneshot"; - ExecStart = "/bin/sh ${morgenreport-script}/bin/morgenreport"; - }; - }; - timers.morgenreport = { Timer = { OnCalendar = "20:00"; }; }; - }; -} diff --git a/home/unused/sort-mail.nix b/home/unused/sort-mail.nix deleted file mode 100644 index f643b738..00000000 --- a/home/unused/sort-mail.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ pkgs, ... }: { - systemd.user = { - services.sort-mail = let - sort-mail-script = pkgs.writeShellScriptBin "sort-mail" '' - ${pkgs.isync}/bin/mbsync -a - - mv $HOME/data/aktuell/it/mail/.Move.kiva/cur/* $HOME/data/aktuell/it/mail-accounts/fb4/INBOX/new/ - mv $HOME/data/aktuell/it/mail/.Move.Auslandskoordination/cur/* $HOME/data/aktuell/it/mail-accounts/auslandskoordination/Malte/bearbeiten/new/ - - mv $HOME/data/aktuell/it/mail-accounts/fb4/Move/privat/cur/* $HOME/data/aktuell/it/mail/new/ - mv $HOME/data/aktuell/it/mail-accounts/fb4/Move/Auslandskoordination/cur/* $HOME/data/aktuell/it/mail-accounts/auslandskoordination/Malte/bearbeiten/new/ - - mv $HOME/data/aktuell/it/mail-accounts/auslandskoordination/Malte/privat/cur/* $HOME/data/aktuell/it/mail/new/ - mv $HOME/data/aktuell/it/mail-accounts/auslandskoordination/Malte/kiva/cur/* $HOME/data/aktuell/it/mail-accounts/fb4/INBOX/new/ - - ${pkgs.isync}/bin/mbsync -a - ''; - in { - Unit = { Description = "Sort E-Mails"; }; - - Service = { - Type = "oneshot"; - ExecStart = "/bin/sh ${sort-mail-script}/bin/sort-mail"; - }; - }; - timers.sort-mail = { Timer = { OnCalendar = "minutely"; }; }; - }; -} diff --git a/home/unused/update-hm.nix b/home/unused/update-hm.nix deleted file mode 100644 index 8bb73943..00000000 --- a/home/unused/update-hm.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ pkgs, ... }: -let - path = "https://github.com/rycee/home-manager/archive/release-17.09.tar.gz"; - home-manager = (import ../../home-manager { - inherit pkgs; - inherit path; - }); -in { - systemd.user = { - services.update-hm = { - Unit = { Description = "Update home-manager"; }; - - Service = { - Type = "oneshot"; - ExecStart = "${home-manager}/bin/home-manager switch"; - }; - }; - timers.update-hm = { - Timer = { - OnCalendar = "22:15"; - Persistent = "true"; - }; - }; - }; -} diff --git a/home/unused/urxvt.nix b/home/unused/urxvt.nix deleted file mode 100644 index d0ee74cc..00000000 --- a/home/unused/urxvt.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ pkgs, lib, config, ... }: -let colors = config.common.colors; -in { - home = { packages = with pkgs; [ rxvt_unicode-with-plugins ]; }; - xresources.properties = { - "*transparent" = true; - "*tintColor" = colors.background; - "*scrollBar" = false; - "*urgentOnBell" = true; - "*background" = colors.background; - "*foreground" = colors.foreground; - "*color0" = colors.black; - "*color8" = colors.brightBlack; - "*color1" = colors.red; - "*color9" = colors.brightRed; - "*color2" = colors.green; - "*color10" = colors.brightGreen; - "*color3" = colors.yellow; - "*color11" = colors.brightYellow; - "*color4" = colors.blue; - "*color12" = colors.brightBlue; - "*color5" = colors.magenta; - "*color13" = colors.brightMagenta; - "*color6" = colors.cyan; - "*color14" = colors.brightCyan; - "*color7" = colors.white; - "*color15" = colors.brightWhite; - "*boldFont" = ""; - }; -}