Add tldr persistence and much more
This commit is contained in:
parent
36d1a39511
commit
f17e32e30d
|
@ -13,7 +13,7 @@ let
|
||||||
|
|
||||||
catppuccin-latte = {
|
catppuccin-latte = {
|
||||||
stylix = {
|
stylix = {
|
||||||
image = ./wallpapers/watercag.png;
|
image = ./wallpapers/needygirloverdose.jpg;
|
||||||
base16Scheme = "${inputs.catppuccin-base16}/base16/latte.yaml";
|
base16Scheme = "${inputs.catppuccin-base16}/base16/latte.yaml";
|
||||||
polarity = "light";
|
polarity = "light";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,6 +6,7 @@ pkgs.mkShell {
|
||||||
hpack
|
hpack
|
||||||
stack
|
stack
|
||||||
cabal-install
|
cabal-install
|
||||||
|
haskell-language-server
|
||||||
haskellPackages.implicit-hie # Automatically generate hie.yaml!
|
haskellPackages.implicit-hie # Automatically generate hie.yaml!
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,8 @@ require("my.helpers.wrapMovement").setup()
|
||||||
vim.opt.conceallevel = 0
|
vim.opt.conceallevel = 0
|
||||||
|
|
||||||
-- vim.opt.foldcolumn = "1"
|
-- vim.opt.foldcolumn = "1"
|
||||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
-- vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
vim.opt.foldmethod = "expr"
|
-- vim.opt.foldmethod = "expr"
|
||||||
|
|
||||||
-- {{{ Older functions for calculating things inside vim
|
-- {{{ Older functions for calculating things inside vim
|
||||||
-- vim.keymap.set("n", "<leader>lg", function()
|
-- vim.keymap.set("n", "<leader>lg", function()
|
||||||
|
@ -33,79 +33,82 @@ vim.opt.foldmethod = "expr"
|
||||||
|
|
||||||
local abbreviations = {
|
local abbreviations = {
|
||||||
-- Other fancy symvols
|
-- Other fancy symvols
|
||||||
{ "tmat", "^T" }, -- Tranpose of a matrix
|
{ "tmat", "^T" }, -- Tranpose of a matrix
|
||||||
{ "cmat", "^*" }, -- Conjugate of a matrix
|
{ "cmat", "^*" }, -- Conjugate of a matrix
|
||||||
{ "sneg", "^C" }, -- Set complement
|
{ "sneg", "^C" }, -- Set complement
|
||||||
{ "ortco", "^\\bot" }, -- Orthogonal complement
|
{ "ortco", "^\\bot" }, -- Orthogonal complement
|
||||||
{ "sinter", "^\\circ" }, -- Interior of a set
|
{ "sinter", "^\\circ" }, -- Interior of a set
|
||||||
{ "nuls", "\\varnothing" },
|
{ "nuls", "\\varnothing" },
|
||||||
|
|
||||||
-- Basic commands
|
-- Basic commands
|
||||||
{ "mangle", "\\measuredangle" },
|
{ "mangle", "\\measuredangle" },
|
||||||
{ "aangle", "\\angle" },
|
{ "aangle", "\\angle" },
|
||||||
{ "sdiff", "\\setminus" },
|
{ "sdiff", "\\setminus" },
|
||||||
{ "sst", "\\subset" },
|
{ "sst", "\\subset" },
|
||||||
{ "spt", "\\supset" },
|
{ "spt", "\\supset" },
|
||||||
{ "sseq", "\\subseteq" },
|
{ "sseq", "\\subseteq" },
|
||||||
{ "speq", "\\supseteq" },
|
{ "speq", "\\supseteq" },
|
||||||
{ "nin", "\\not\\in" },
|
{ "nin", "\\not\\in" },
|
||||||
{ "iin", "\\in" },
|
{ "iin", "\\in" },
|
||||||
{ "tto", "\\to" },
|
{ "tto", "\\to" },
|
||||||
{ "land", "\\land" },
|
{ "land", "\\land" },
|
||||||
{ "lor", "\\lor" },
|
{ "lor", "\\lor" },
|
||||||
{ "ssin", "\\sin" },
|
{ "ssin", "\\sin" },
|
||||||
{ "ccos", "\\cos" },
|
{ "ccos", "\\cos" },
|
||||||
{ "ttan", "\\ttan" },
|
{ "ttan", "\\ttan" },
|
||||||
{ "ssec", "\\sec" },
|
{ "ssec", "\\sec" },
|
||||||
{ "lln", "\\ln" },
|
{ "lln", "\\ln" },
|
||||||
{ "frl", "\\forall" },
|
{ "frl", "\\forall" },
|
||||||
{ "exs", "\\exists" },
|
{ "exs", "\\exists" },
|
||||||
{ "iinf", "\\infty" },
|
{ "iinf", "\\infty" },
|
||||||
{ "ninf", "-\\infty" },
|
{ "ninf", "-\\infty" },
|
||||||
{ "nlnl", "\\pm" }, -- had this as npnp first but it was hard-ish to type
|
{ "nlnl", "\\pm" }, -- had this as npnp first but it was hard-ish to type
|
||||||
{ "ccup", "\\cup" },
|
{ "ccup", "\\cup" },
|
||||||
{ "ccap", "\\cap" },
|
{ "ccap", "\\cap" },
|
||||||
{ "nope", "\\bot" },
|
{ "nope", "\\bot" },
|
||||||
{ "yee", "\\top" },
|
{ "yee", "\\top" },
|
||||||
{ "ccan", "\\cancel" },
|
{ "ccan", "\\cancel" },
|
||||||
{ "com", "\\circ" },
|
{ "com", "\\circ" },
|
||||||
{ "mul", "\\cdot" },
|
{ "mul", "\\cdot" },
|
||||||
{ "smul", "\\times" },
|
{ "smul", "\\times" },
|
||||||
{ "card", "\\#" },
|
{ "card", "\\#" },
|
||||||
{ "div", "\\|" },
|
{ "div", "\\|" },
|
||||||
{ "ndiv", "\\not\\|\\:" },
|
{ "ndiv", "\\not\\|\\:" },
|
||||||
{ "perp", "\\perp" },
|
{ "perp", "\\perp" },
|
||||||
|
{ "cdots", "\\cdots" }, -- center dots
|
||||||
|
{ "ldots", "\\ldots" }, -- low dots
|
||||||
|
{ "cldots", ",\\ldots," }, -- comma, low dots
|
||||||
|
|
||||||
-- Decorations
|
-- Decorations
|
||||||
{ "hat", "\\hat" },
|
{ "hat", "\\hat" },
|
||||||
{ "bar", "\\bar" },
|
{ "bar", "\\bar" },
|
||||||
|
|
||||||
-- Custom commands
|
-- Custom commands
|
||||||
{ "abs", "\\abs" }, -- custom abs command
|
{ "abs", "\\abs" }, -- custom abs command
|
||||||
{ "norm", "\\norm" }, -- custom norm command
|
{ "norm", "\\norm" }, -- custom norm command
|
||||||
{ "iprod", "\\iprod" }, -- custom inner product command
|
{ "iprod", "\\iprod" }, -- custom inner product command
|
||||||
{ "diprod", "\\dprod" }, -- custom self inner product command
|
{ "diprod", "\\dprod" }, -- custom self inner product command
|
||||||
{ "prob", "\\prob" }, -- custom probability function
|
{ "prob", "\\prob" }, -- custom probability function
|
||||||
{ "dist", "\\dist" }, -- custom dist function
|
{ "dist", "\\dist" }, -- custom dist function
|
||||||
{ "diam", "\\diam" }, -- custom diam operator
|
{ "diam", "\\diam" }, -- custom diam operator
|
||||||
{ "gen", "\\gen" }, -- custom command for group generated by element
|
{ "gen", "\\gen" }, -- custom command for group generated by element
|
||||||
{ "ord", "\\ordop" }, -- order of a group
|
{ "ord", "\\ordop" }, -- order of a group
|
||||||
{ "vsm", "\\vecspace" }, -- custom math vector space
|
{ "vsm", "\\vecspace" }, -- custom math vector space
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Todo: convert exponents and subscripts
|
-- Todo: convert exponents and subscripts
|
||||||
-- to use this more concise notation.
|
-- to use this more concise notation.
|
||||||
local abolishAbbreviations = {
|
local abolishAbbreviations = {
|
||||||
-- {{{ General phrases
|
-- {{{ General phrases
|
||||||
{ "thrf", "therefore" },
|
{ "thrf", "therefore" },
|
||||||
{ "bcla", "by contradiction let's assume" },
|
{ "bcla", "by contradiction let's assume" },
|
||||||
{ "wlg", "without loss of generality" },
|
{ "wlg", "without loss of generality" },
|
||||||
{ "tits", "that is to say," },
|
{ "tits", "that is to say," },
|
||||||
{ "wpbd", "we will prove the statement in both directions." },
|
{ "wpbd", "we will prove the statement in both directions." },
|
||||||
{ "stam{,s}", "statement{}" },
|
{ "stam{,s}", "statement{}" },
|
||||||
{ "{ww,tt}{m,i}", "{which,this} {means,implies}" },
|
{ "{ww,tt}{m,i}", "{which,this} {means,implies}" },
|
||||||
{ "cex{,s}", "counterexample{}" },
|
{ "cex{,s}", "counterexample{}" },
|
||||||
{ "er{t,s,r}", "{transitivity,symmetry,reflexivity}" },
|
{ "er{t,s,r}", "{transitivity,symmetry,reflexivity}" },
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Exponents and subscripts:
|
-- {{{ Exponents and subscripts:
|
||||||
-- {operation}{argument}
|
-- {operation}{argument}
|
||||||
|
@ -131,7 +134,7 @@ local abolishAbbreviations = {
|
||||||
-- to `\\foo` directly (so I saved some keystrokes by letting scrap.nvim
|
-- to `\\foo` directly (so I saved some keystrokes by letting scrap.nvim
|
||||||
-- repeat everything for me).
|
-- repeat everything for me).
|
||||||
{
|
{
|
||||||
"{,e,s}{{eps,lam},{star,delta,Delta,pi,psi,sigma,alpha,beta,theta,gamma,omega,Omega}}",
|
"{,e,s}{{eps,lam},{star,delta,Delta,pi,tau,psi,phi,rho,sigma,alpha,beta,theta,gamma,omega,Omega}}",
|
||||||
"{,^,_}\\\\{{epsilon,lambda},{}}",
|
"{,^,_}\\\\{{epsilon,lambda},{}}",
|
||||||
options = A.no_capitalization,
|
options = A.no_capitalization,
|
||||||
},
|
},
|
||||||
|
@ -180,20 +183,20 @@ local abolishAbbreviations = {
|
||||||
},
|
},
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Calculus & analysis
|
-- {{{ Calculus & analysis
|
||||||
{ "ib{p,s}", "integration by {parts,substitution}" },
|
{ "ib{p,s}", "integration by {parts,substitution}" },
|
||||||
{ "nb{,h}{,s}", "neighbour{,hood}{}" },
|
{ "nb{,h}{,s}", "neighbour{,hood}{}" },
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Linear algebra
|
-- {{{ Linear algebra
|
||||||
{ "rref", "reduced row echalon form" },
|
{ "rref", "reduced row echalon form" },
|
||||||
{ "eg{va,ve,p}{,s}", "eigen{value,vector,pair}{}" },
|
{ "eg{va,ve,p}{,s}", "eigen{value,vector,pair}{}" },
|
||||||
{ "mx{,s}", "matri{x,ces}" },
|
{ "mx{,s}", "matri{x,ces}" },
|
||||||
{ "dete{,s}", "determinant{}" },
|
{ "dete{,s}", "determinant{}" },
|
||||||
{ "ort{n,g}", "orto{normal,gonal}" },
|
{ "ort{n,g}", "orto{normal,gonal}" },
|
||||||
{ "l{in,de}", "linearly {independent,dependent}" },
|
{ "l{in,de}", "linearly {independent,dependent}" },
|
||||||
{ "lcon{,s}", "linear combination{}" },
|
{ "lcon{,s}", "linear combination{}" },
|
||||||
{ "vst{,s}", "vector space{}" }, -- text vector space
|
{ "vst{,s}", "vector space{}" }, -- text vector space
|
||||||
{
|
{
|
||||||
"rizz", -- ok please ignore this one 💀
|
"rizz", -- ok please ignore this one 💀
|
||||||
"Riesz vector",
|
"Riesz vector",
|
||||||
options = A.no_capitalization,
|
options = A.no_capitalization,
|
||||||
},
|
},
|
||||||
|
@ -206,7 +209,7 @@ local abolishAbbreviations = {
|
||||||
},
|
},
|
||||||
-- }}}
|
-- }}}
|
||||||
-- {{{ Graph theory
|
-- {{{ Graph theory
|
||||||
{ "vx{,s}", "vert{ex,ices}" },
|
{ "vx{,s}", "vert{ex,ices}" },
|
||||||
{ "edg{,s}", "edge{}" },
|
{ "edg{,s}", "edge{}" },
|
||||||
|
|
||||||
-- Graph theory function syntax:
|
-- Graph theory function syntax:
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"Self inner product": {
|
"Self inner product": {
|
||||||
"prefix": "diprod",
|
"prefix": "diprod",
|
||||||
"description": "Inner product of a vector with itself",
|
"description": "Inner product of a vector with itself",
|
||||||
"body": "\\dprod{$1}{$1}$0"
|
"body": "\\dprod{$1}$0"
|
||||||
},
|
},
|
||||||
"Lemma": {
|
"Lemma": {
|
||||||
"prefix": "lemma",
|
"prefix": "lemma",
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
/* add '[pdf]' next to links to PDF files */
|
|
||||||
a[href$=".pdf"]:after {
|
|
||||||
font-size: smaller;
|
|
||||||
content: " [pdf]";
|
|
||||||
}
|
|
|
@ -96,4 +96,9 @@
|
||||||
# "${config.xdg.configHome}/syncthing" # Syncthing config data
|
# "${config.xdg.configHome}/syncthing" # Syncthing config data
|
||||||
# ];
|
# ];
|
||||||
# # }}}
|
# # }}}
|
||||||
|
# {{{ Tldr
|
||||||
|
satellite.persistence.at.cache.apps.tldr.directories = [
|
||||||
|
"${config.home.homeDirectory}/.tldrc" # tldr cache
|
||||||
|
];
|
||||||
|
# }}}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ let
|
||||||
(chord [ "j" "k" "l" ] [ "rightctrl" "rightshift" ])
|
(chord [ "j" "k" "l" ] [ "rightctrl" "rightshift" ])
|
||||||
(chord [ "s" "d" "f" ] [ "leftctrl" "leftshift" ])
|
(chord [ "s" "d" "f" ] [ "leftctrl" "leftshift" ])
|
||||||
(unmap [ "leftalt" ])
|
(unmap [ "leftalt" ])
|
||||||
(unmap [ "leftshift" ])
|
# (unmap [ "leftshift" ]) # Useful for touhou
|
||||||
(unmap [ "leftctrl" ])
|
(unmap [ "leftctrl" ])
|
||||||
(unmap [ "rightshift" ])
|
(unmap [ "rightshift" ])
|
||||||
(unmap [ "rightctrl" ])
|
(unmap [ "rightctrl" ])
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
../common/optional/xdg-portal.nix
|
../common/optional/xdg-portal.nix
|
||||||
../common/optional/hyprland.nix
|
../common/optional/hyprland.nix
|
||||||
../common/optional/quietboot.nix
|
../common/optional/quietboot.nix
|
||||||
|
../common/optional/gitea.nix
|
||||||
|
|
||||||
./hardware
|
./hardware
|
||||||
./services/syncthing.nix
|
./services/syncthing.nix
|
||||||
|
@ -36,7 +37,9 @@
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ A few ad-hoc programs
|
# {{{ A few ad-hoc programs
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
programs.firejail.enable = true;
|
||||||
programs.extra-container.enable = true;
|
programs.extra-container.enable = true;
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ Ad-hoc stylix targets
|
# {{{ Ad-hoc stylix targets
|
||||||
# TODO: include this on all gui hosts
|
# TODO: include this on all gui hosts
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
let
|
||||||
|
# TODO: remove this once I switch to zfs
|
||||||
|
commonVersioning = {
|
||||||
|
type = "staggered";
|
||||||
|
params = {
|
||||||
|
cleanInterval = "3600"; # 1 hour in seconds
|
||||||
|
maxAge = "604800"; # 14 days in seconds.
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [ ../../common/optional/syncthing.nix ];
|
imports = [ ../../common/optional/syncthing.nix ];
|
||||||
|
|
||||||
|
@ -5,19 +15,12 @@
|
||||||
"mythical-vault" = {
|
"mythical-vault" = {
|
||||||
path = "/home/adrielus/.password-store";
|
path = "/home/adrielus/.password-store";
|
||||||
devices = [ "enceladus" "lapetus" ];
|
devices = [ "enceladus" "lapetus" ];
|
||||||
|
versioning = commonVersioning;
|
||||||
};
|
};
|
||||||
"stellar-sanctum" = {
|
"stellar-sanctum" = {
|
||||||
path = "/home/adrielus/Projects/stellar-sanctum/";
|
path = "/home/adrielus/Projects/stellar-sanctum/";
|
||||||
devices = [ "enceladus" "lapetus" ];
|
devices = [ "enceladus" "lapetus" ];
|
||||||
|
versioning = commonVersioning;
|
||||||
# TODO: remove this once I switch to zfs
|
|
||||||
versioning = {
|
|
||||||
type = "staggered";
|
|
||||||
params = {
|
|
||||||
cleanInterval = "3600"; # 1 hour in seconds
|
|
||||||
maxAge = "604800"; # 14 days in seconds.
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue