diff --git a/profiles/himalaya.nix b/profiles/himalaya.nix index e942c87..568fb62 100644 --- a/profiles/himalaya.nix +++ b/profiles/himalaya.nix @@ -1,13 +1,14 @@ {pkgs, ...}: { programs.himalaya = { enable = true; - package = pkgs.writeShellApplication { - name = "himalaya"; - runtimeInputs = [pkgs.himalaya]; - text = '' - exec env RUST_LOG="warn,imap_codec::response=error" ${pkgs.himalaya}/bin/himalaya "$@" - ''; - }; + package = + pkgs.writeShellApplication { + name = "himalaya"; + runtimeInputs = [pkgs.himalaya]; + text = '' + exec env RUST_LOG="warn,imap_codec::response=error" ${pkgs.himalaya}/bin/himalaya "$@" + ''; + }; }; accounts.email = { diff --git a/profiles/neverest.nix b/profiles/neverest.nix index 612fb36..6ecd73e 100644 --- a/profiles/neverest.nix +++ b/profiles/neverest.nix @@ -11,61 +11,62 @@ with lib; let in { home.packages = [pkgs.neverest]; - xdg.configFile."neverest/config.toml".source = tomlFormat.generate "neverest-config.toml" { - accounts."christoph@schmatzler.com" = { - default = true; + xdg.configFile."neverest/config.toml".source = + tomlFormat.generate "neverest-config.toml" { + accounts."christoph@schmatzler.com" = { + default = true; - folder.filters = "all"; + folder.filters = "all"; - left = { - backend = { - type = "maildir"; - root-dir = maildirPath; - }; - folder = { - aliases = { - inbox = "INBOX"; - drafts = "Drafts"; - sent = "Sent Messages"; - trash = "Deleted Messages"; + left = { + backend = { + type = "maildir"; + root-dir = maildirPath; }; - permissions = { + folder = { + aliases = { + inbox = "INBOX"; + drafts = "Drafts"; + sent = "Sent Messages"; + trash = "Deleted Messages"; + }; + permissions = { + create = true; + delete = true; + }; + }; + flag.permissions.update = true; + message.permissions = { create = true; delete = true; }; }; - flag.permissions.update = true; - message.permissions = { - create = true; - delete = true; - }; - }; - right = { - backend = { - type = "imap"; - host = "imap.mail.me.com"; - port = 993; - encryption = "tls"; - login = account.userName; - auth = { - type = "password"; - cmd = concatStringsSep " " account.passwordCommand; + right = { + backend = { + type = "imap"; + host = "imap.mail.me.com"; + port = 993; + encryption = "tls"; + login = account.userName; + auth = { + type = "password"; + cmd = concatStringsSep " " account.passwordCommand; + }; }; - }; - folder = { - aliases = { - inbox = "INBOX"; - drafts = "Drafts"; - sent = "Sent Messages"; - trash = "Deleted Messages"; + folder = { + aliases = { + inbox = "INBOX"; + drafts = "Drafts"; + sent = "Sent Messages"; + trash = "Deleted Messages"; + }; + permissions.delete = false; }; - permissions.delete = false; + message.permissions.delete = false; }; - message.permissions.delete = false; }; }; - }; systemd.user.services.neverest-sync = { Unit = {