this repo has no description

ft: add Clacks to email clients

hauleth.dev 4af901df 4f0b42d7

verified
Changed files
+98 -23
modules
users
vim
.config
+21 -4
modules/email.nix
···
{pkgs, ...}: {
# programs.himalaya.enable = true;
-
programs.mbsync.enable = true;
-
programs.notmuch.enable = true;
-
programs.aerc.enable = true;
-
programs.aerc.extraConfig.general.unsafe-accounts-conf = true;
accounts.email.accounts."hauleth" = {
realName = "Łukasz Niemier";
···
aerc.enable = true;
# himalaya.enable = true;
imap = {
host = "mail.hauleth.dev";
port = 993;
···
{pkgs, ...}: {
+
targets.darwin.defaults = {
+
# Remember the fallen
+
"com.apple.mail" = {
+
UserHeaders = "{ \"X-Clacks-Overhead\" = \"GNU Terry Pratchett\"; }";
+
};
+
};
+
# programs.himalaya.enable = true;
+
# programs.mbsync.enable = true;
+
# programs.notmuch.enable = true;
+
+
programs.aerc = {
+
enable = true;
+
extraConfig = {
+
general.unsafe-accounts-conf = true;
+
+
filters = {
+
"text/plain" = "colorize";
+
};
+
};
+
};
accounts.email.accounts."hauleth" = {
realName = "Łukasz Niemier";
···
aerc.enable = true;
# himalaya.enable = true;
+
# TODO: Migrate to JMAP
imap = {
host = "mail.hauleth.dev";
port = 993;
+10 -2
modules/git.nix
···
pkgs.git-branchless
git-branchless-man
pkgs.git-gone
-
pkgs.git-chglog
git-cliff
pkgs.git-revise
pkgs.gitAndTools.git-imerge
···
merge = {
ff = false;
-
conflictstyle = "diff3";
};
branch.autoSetupRebase = "always";
···
indentHeuristic = true;
algorithm = "histogram";
mnemonicPrefix = true;
tool = "difftastic";
···
autostash = true;
autosquash = true;
updateRefs = true;
};
pretty = {
···
pkgs.git-branchless
git-branchless-man
pkgs.git-gone
git-cliff
pkgs.git-revise
pkgs.gitAndTools.git-imerge
···
merge = {
ff = false;
+
conflictstyle = "zdiff3";
};
branch.autoSetupRebase = "always";
···
indentHeuristic = true;
algorithm = "histogram";
mnemonicPrefix = true;
+
renames = "copies";
tool = "difftastic";
···
autostash = true;
autosquash = true;
updateRefs = true;
+
};
+
+
url."git@github.com:".pushInsteadOf = "https://github.com/";
+
+
maintenance = {
+
# It will ask 1password for access to SSH key/GH token. That is
+
# irritating
+
prefetch.enabled = false;
};
pretty = {
+2
modules/nvim.nix
···
start = [
packer-nvim
nvim-treesitter.withAllGrammars
];
opt = [];
···
start = [
packer-nvim
nvim-treesitter.withAllGrammars
+
neorg
+
neorg-telescope
];
opt = [];
+3
modules/pijul.nix
···
···
+
{ pkgs, ... }: {
+
home.packages = [ pkgs.pijul ];
+
}
+37 -8
modules/swiftbar.nix
···
-
{pkgs, ...}: {
-
home.packages = with pkgs; [
-
swiftbar
-
];
-
targets.darwin.defaults = {
-
"com.ameba.SwiftBar" = {
-
PluginDirectory = "/Users/hauleth/.config/swift-bar/plugins/";
};
};
-
}
···
+
{pkgs, lib, ...}: {
+
# WIP
+
options.swiftbar = let
+
inherit (lib) mkOption types;
+
in {
+
enable = lib.mkEnableOption "swiftbar";
+
+
package = lib.mkPackageOption pkgs "swiftbar" {};
+
+
plugins = mkOption {
+
type = types.attrsOf (types.submodule {
+
enable = lib.mkEnableOption "current SwiftBar plugin";
+
+
frequency = mkOption {
+
type = types.string;
+
example = "1m";
+
description = ''
+
How often should SwiftBar run script in the background.
+
'';
+
};
+
+
script = mkOption {
+
type = types.string;
+
};
+
});
+
};
+
};
+
config = {
+
home.packages = [
+
pkgs.swiftbar
+
];
+
+
targets.darwin.defaults = {
+
"com.ameba.SwiftBar" = {
+
PluginDirectory = "/Users/hauleth/.config/swift-bar/plugins/";
+
};
};
};
+
}
+5 -2
modules/tools.nix
···
-
{pkgs, inputs, config, ...}: {
home.packages = with pkgs; [
# bfs
comby
senpai
jaq
jo
-
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.ubin-client
];
}
···
+
{pkgs, inputs, config, ...}: let
+
pkgs-self = inputs.self.packages.${pkgs.stdenv.hostPlatform.system};
+
in {
home.packages = with pkgs; [
# bfs
comby
senpai
jaq
jo
+
glow
+
pkgs-self.ubin-client
];
}
+1
users/hauleth.nix
···
../modules/nixd.nix
../modules/swiftbar.nix
../modules/email.nix
./modules/dircolors.nix
{home.stateVersion = "23.05";}
];
···
../modules/nixd.nix
../modules/swiftbar.nix
../modules/email.nix
+
../modules/pijul.nix
./modules/dircolors.nix
{home.stateVersion = "23.05";}
];
+2 -4
vim/.config/nvim/fnl/langclient.fnl
···
:default_config {
:autostart false
:filetypes ["elixir" "eelixir" "heex"]
-
:root_dir (fn [fname]
-
(let [project ((lspconfig.util.root_pattern ".git") fname)]
-
project))}
-
})
(set lspconfig.util.default_config
(vim.tbl_extend :force lspconfig.util.default_config
···
:default_config {
:autostart false
:filetypes ["elixir" "eelixir" "heex"]
+
:root_dir (lspconfig.util.root_pattern "mix.lock")
+
}})
(set lspconfig.util.default_config
(vim.tbl_extend :force lspconfig.util.default_config
+1 -2
vim/.config/nvim/fnl/plugins.fnl
···
; Languages
(pkg :elixir-editors/vim-elixir
{:ft [:elixir :eex :heex]})
-
;(pkg :nvim-orgmode/orgmode)
; Language Protocol
(pkg :neovim/nvim-lspconfig)
(pkg :nvim-treesitter/playground
{:cmd [:TSPlaygroundToggle
-
:TSHighlightCaputresUnderCursor]})
(pkg :j-hui/fidget.nvim {:tag :legacy})
; Code manipulation
···
; Languages
(pkg :elixir-editors/vim-elixir
{:ft [:elixir :eex :heex]})
; Language Protocol
(pkg :neovim/nvim-lspconfig)
(pkg :nvim-treesitter/playground
{:cmd [:TSPlaygroundToggle
+
:TSHighlightCapturesUnderCursor]})
(pkg :j-hui/fidget.nvim {:tag :legacy})
; Code manipulation
+1
vim/.config/nvim/ftdetect/custom.vim
···
au BufRead,BufNewFile PULLREQ_EDITMSG setf gitcommit
au BufRead,BufNewFile *.livemd setf markdown
au BufRead,BufNewFile *.prr setf prr
···
au BufRead,BufNewFile PULLREQ_EDITMSG setf gitcommit
au BufRead,BufNewFile *.livemd setf markdown
au BufRead,BufNewFile *.prr setf prr
+
au BufRead,BufNewFile .plan setf plan
+4 -1
vim/.config/nvim/init.fnl
···
:disable [:erlang :make :diff]}
:matchup {:enable true}
:indent {:enable true}
-
:incremental_selection {:enable true}})))
(defcommand Clean "keeppatterns %s/\\s\\+$//e | set nohlsearch")
···
:disable [:erlang :make :diff]}
:matchup {:enable true}
:indent {:enable true}
+
:incremental_selection {:enable true}})
+
(setup :neorg
+
{:load {:core.defaults {}
+
:core.concealer {}}})))
(defcommand Clean "keeppatterns %s/\\s\\+$//e | set nohlsearch")
+11
vim/.config/nvim/syntax/plan.vim
···
···
+
if exists("b:current_syntax")
+
finish
+
endif
+
+
syn match PlanDone '^+\ze\s' conceal cchar=✔
+
syn match PlanWork '^\*\ze\s' conceal cchar=⏲
+
syn match PlanTodo '^-\ze\s' conceal cchar=⨯
+
+
hi def link PlanDone Include
+
hi def link PlanWork Keyword
+
hi def link PlanTodo Comment