prep roundcube, from ktiu.net, nvim stuff
This commit is contained in:
parent
d4474ef5ce
commit
40539ae163
5 changed files with 56 additions and 14 deletions
|
|
@ -53,6 +53,10 @@
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function diary --description 'Create or edit today\'s diary entry'
|
||||||
|
nvim -c "call Diary()"
|
||||||
|
end
|
||||||
|
|
||||||
set -U fish_prompt_pwd_dir_length 0
|
set -U fish_prompt_pwd_dir_length 0
|
||||||
|
|
||||||
function fish_prompt --description "Write out the prompt"
|
function fish_prompt --description "Write out the prompt"
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,13 @@
|
||||||
{
|
{
|
||||||
programs.msmtp = {
|
programs.msmtp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configContent = ''
|
configContent = lib.mkOrder 1200 ''
|
||||||
defaults
|
defaults
|
||||||
logfile ${config.xdg.stateHome}/msmtp/msmtp.log
|
logfile ${config.xdg.stateHome}/msmtp/msmtp.log
|
||||||
port 587
|
port 587
|
||||||
|
|
||||||
|
account ktiu : t9e
|
||||||
|
from *@ktiu.net
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -136,7 +139,7 @@
|
||||||
};
|
};
|
||||||
msmtp = {
|
msmtp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig.from = "*@(ktiu.net|t9e.me)";
|
extraConfig.from = "*@t9e.me";
|
||||||
};
|
};
|
||||||
passwordCommand = "pass mail/arielle.ktiu.net";
|
passwordCommand = "pass mail/arielle.ktiu.net";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ set splitright
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
set updatetime=300
|
set updatetime=300
|
||||||
|
|
||||||
|
" set foldmethod=expr
|
||||||
|
" set foldexpr=nvim_treesitter#foldexpr()
|
||||||
|
|
||||||
let g:netrw_liststyle = 3
|
let g:netrw_liststyle = 3
|
||||||
let g:netrw_fastbrowse = 0
|
let g:netrw_fastbrowse = 0
|
||||||
|
|
||||||
|
|
@ -48,8 +51,17 @@ xnoremap i% GoggV
|
||||||
onoremap <silent> i% :normal vi%<return>
|
onoremap <silent> i% :normal vi%<return>
|
||||||
|
|
||||||
function CreateNote(title)
|
function CreateNote(title)
|
||||||
execute "file ~/notes/" . strftime("%Y-%m-%d") . "_" . join(split(tolower(a:title)), "_") . ".md"
|
execute "VimwikiIndex"
|
||||||
execute "set ft=markdown"
|
execute "VimwikiGoto " . a:title
|
||||||
execute "normal! i" . a:title
|
|
||||||
execute "normal V\<tab>yaml_note\<tab>"
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function Diary()
|
||||||
|
execute "VimwikiMakeDiaryNote"
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" function CreateNote(title)
|
||||||
|
" execute "file ~/notes/" . strftime("%Y-%m-%d") . "_" . join(split(tolower(a:title)), "_") . ".md"
|
||||||
|
" execute "set ft=markdown"
|
||||||
|
" execute "normal! i" . a:title
|
||||||
|
" execute "normal V\<tab>yaml_note\<tab>"
|
||||||
|
" endfunction
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
marksman
|
marksman
|
||||||
nil
|
nil
|
||||||
typescript-language-server
|
typescript-language-server
|
||||||
|
vim-language-server
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
|
|
@ -30,8 +31,9 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = fugitive;
|
plugin = fugitive;
|
||||||
|
type = "lua";
|
||||||
config = ''
|
config = ''
|
||||||
nnoremap <Leader>g :Git
|
vim.api.nvim_set_keymap("n", "<Leader>g", ":Git<CR>", { noremap = true, silent = true })
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,9 +45,9 @@
|
||||||
vim.api.nvim_set_keymap('i', '<c-x><c-k>', '<Plug>(fzf-complete-word)', { silent = true })
|
vim.api.nvim_set_keymap('i', '<c-x><c-k>', '<Plug>(fzf-complete-word)', { silent = true })
|
||||||
vim.api.nvim_set_keymap('i', '<c-x><c-l>', '<Plug>(fzf-complete-line)', { silent = true })
|
vim.api.nvim_set_keymap('i', '<c-x><c-l>', '<Plug>(fzf-complete-line)', { silent = true })
|
||||||
|
|
||||||
vim.api.nvim_set_keymap('n', '<leader><tab>', '<Plug>(fzf-maps-n)', { silent = true })
|
vim.api.nvim_set_keymap('n', '<localleader><tab>', '<Plug>(fzf-maps-n)', { silent = true })
|
||||||
vim.api.nvim_set_keymap('x', '<leader><tab>', '<Plug>(fzf-maps-x)', { silent = true })
|
vim.api.nvim_set_keymap('x', '<localleader><tab>', '<Plug>(fzf-maps-x)', { silent = true })
|
||||||
vim.api.nvim_set_keymap('o', '<leader><tab>', '<Plug>(fzf-maps-o)', { silent = true })
|
vim.api.nvim_set_keymap('o', '<localleader><tab>', '<Plug>(fzf-maps-o)', { silent = true })
|
||||||
|
|
||||||
vim.api.nvim_set_keymap('n', '<leader>b', ':Buffers<return>', { noremap = true, silent = true })
|
vim.api.nvim_set_keymap('n', '<leader>b', ':Buffers<return>', { noremap = true, silent = true })
|
||||||
vim.api.nvim_set_keymap('n', '<leader>o', ':Files<return>', { noremap = true, silent = true })
|
vim.api.nvim_set_keymap('n', '<leader>o', ':Files<return>', { noremap = true, silent = true })
|
||||||
|
|
@ -107,11 +109,14 @@
|
||||||
vim.lsp.enable('r_language_server')
|
vim.lsp.enable('r_language_server')
|
||||||
vim.lsp.enable('texlab')
|
vim.lsp.enable('texlab')
|
||||||
vim.lsp.enable('ts_ls')
|
vim.lsp.enable('ts_ls')
|
||||||
|
vim.lsp.enable('vimls')
|
||||||
|
|
||||||
vim.api.nvim_del_keymap('i', '<c-s>')
|
vim.api.nvim_del_keymap('i', '<c-s>')
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(nvim-treesitter.withPlugins (p: [ p.nix p.lua p.r p.typescript ]))
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = papercolor-theme;
|
plugin = papercolor-theme;
|
||||||
config = ''
|
config = ''
|
||||||
|
|
@ -155,10 +160,11 @@
|
||||||
{
|
{
|
||||||
plugin = vim-pandoc;
|
plugin = vim-pandoc;
|
||||||
config = ''
|
config = ''
|
||||||
let g:pandoc#modules#disabled = ["completion", "command", "menu", "completion"]
|
let g:pandoc#modules#disabled = ["completion", "command", "menu"]
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vim-pandoc-syntax
|
||||||
vim-repeat
|
vim-repeat
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,15 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
webmailHostName = "webmail.${config.networking.domain}";
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
services.roundcube = {
|
services.roundcube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "webmail.ktiu.net";
|
hostName = webmailHostName;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
$config['smtp_host'] = 'tls://%h';
|
$config['smtp_host'] = 'tls://%h';
|
||||||
$config['smtp_conn_options'] = [
|
$config['smtp_conn_options'] = [
|
||||||
|
|
@ -14,4 +20,15 @@
|
||||||
];
|
];
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# not sure why this is currently working w/o the following
|
||||||
|
#
|
||||||
|
# services.nginx.virtualHosts."${webmailHostName}" = {
|
||||||
|
# enableACME = lib.mkForce false;
|
||||||
|
# useACMEHost = config.networking.domain;
|
||||||
|
# };
|
||||||
|
# security.acme.certs."${config.networking.domain}".extraDomainNames = [
|
||||||
|
# webmailHostName
|
||||||
|
# ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue