va a ciapa i ratt

This commit is contained in:
Andrea Ciceri 2023-06-16 10:07:37 +02:00
parent fac91af11a
commit 8346c9f02c
No known key found for this signature in database
43 changed files with 909 additions and 446 deletions

129
hmModules/aerc/binds.conf Normal file
View file

@ -0,0 +1,129 @@
# Binds are of the form <key sequence> = <command to run>
# To use '=' in a key sequence, substitute it with "Eq": "<Ctrl+Eq>"
# If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit
<C-p> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
<C-t> = :term<Enter>
? = :help keys<Enter>
[messages]
q = :quit<Enter>
j = :next<Enter>
<Down> = :next<Enter>
<C-d> = :next 50%<Enter>
<C-f> = :next 100%<Enter>
<PgDn> = :next 100%<Enter>
k = :prev<Enter>
<Up> = :prev<Enter>
<C-u> = :prev 50%<Enter>
<C-b> = :prev 100%<Enter>
<PgUp> = :prev 100%<Enter>
g = :select 0<Enter>
G = :select -1<Enter>
J = :next-folder<Enter>
K = :prev-folder<Enter>
H = :collapse-folder<Enter>
L = :expand-folder<Enter>
v = :mark -t<Enter>
V = :mark -v<Enter>
T = :toggle-threads<Enter>
<Enter> = :view<Enter>
d = :prompt 'Really delete this message?' 'delete-message'<Enter>
D = :delete<Enter>
A = :archive flat<Enter>
C = :compose<Enter>
rr = :reply -a<Enter>
rq = :reply -aq<Enter>
Rr = :reply<Enter>
Rq = :reply -q<Enter>
c = :cf<space>
$ = :term<space>
! = :term<space>
| = :pipe<space>
/ = :search<space>
\ = :filter<space>
n = :next-result<Enter>
N = :prev-result<Enter>
<Esc> = :clear<Enter>
[messages:folder=Drafts]
<Enter> = :recall<Enter>
[view]
/ = :toggle-key-passthrough<Enter>/
q = :close<Enter>
O = :open<Enter>
S = :save<space>
| = :pipe<space>
D = :delete<Enter>
A = :archive flat<Enter>
<C-l> = :open-link <space>
f = :forward<Enter>
rr = :reply -a<Enter>
rq = :reply -aq<Enter>
Rr = :reply<Enter>
Rq = :reply -q<Enter>
H = :toggle-headers<Enter>
<C-k> = :prev-part<Enter>
<C-j> = :next-part<Enter>
J = :next<Enter>
K = :prev<Enter>
[view::passthrough]
$noinherit = true
$ex = <C-x>
<Esc> = :toggle-key-passthrough<Enter>
[compose]
# Keybindings used when the embedded terminal is not selected in the compose
# view
$noinherit = true
$ex = <C-x>
<C-k> = :prev-field<Enter>
<C-j> = :next-field<Enter>
<A-p> = :switch-account -p<Enter>
<A-n> = :switch-account -n<Enter>
<tab> = :next-field<Enter>
<backtab> = :prev-field<Enter>
<C-p> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
[compose::editor]
# Keybindings used when the embedded terminal is selected in the compose view
$noinherit = true
$ex = <C-x>
<C-k> = :prev-field<Enter>
<C-j> = :next-field<Enter>
<C-p> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
[compose::review]
# Keybindings used when reviewing a message to be sent
y = :send<Enter>
n = :abort<Enter>
v = :preview<Enter>
p = :postpone<Enter>
q = :choose -o d discard abort -o p postpone postpone<Enter>
e = :edit<Enter>
a = :attach<space>
d = :detach<space>
[terminal]
$noinherit = true
$ex = <C-x>
<C-p> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>

View file

@ -0,0 +1,18 @@
{
imports = [../email];
config = {
accounts.email.accounts = {
autistici.aerc = {
enable = true;
};
mlabs.aerc = {
enable = false;
};
};
programs.aerc = {
enable = true;
extraBinds = builtins.readFile ./binds.conf;
extraConfig.general.unsafe-accounts-conf = true;
};
};
}

View file

@ -3,52 +3,67 @@
secrets,
...
}: {
home.packages = with pkgs; [mu];
programs.mbsync.enable = true;
programs.msmtp.enable = true;
programs.notmuch = {
enable = true;
hooks = {
preNew = "mbsync --all";
};
};
services = {
mbsync = {
enable = false;
# FIXME this requires `pass` every 5 minutes that run `pinentry`
frequency = "*:0/15";
preExec = "${pkgs.isync}/bin/mbsync -Ha";
# First time run: mu init --maildir ~/.mail --my-address andrea.ciceri@autistici.org
# TODO Nixify this
postExec = "${pkgs.mu}/bin/mu index";
};
};
# home.packages = with pkgs; [mu];
# programs.mbsync.enable = true;
# programs.msmtp.enable = true;
# programs.notmuch = {
# enable = true;
# hooks = {
# preNew = "mbsync --all";
# };
# };
# services = {
# mbsync = {
# enable = false;
# # FIXME this requires `pass` every 5 minutes that run `pinentry`
# frequency = "*:0/15";
# preExec = "${pkgs.isync}/bin/mbsync -Ha";
# # First time run: mu init --maildir ~/.mail --my-address andrea.ciceri@autistici.org
# # TODO Nixify this
# postExec = "${pkgs.mu}/bin/mu index";
# };
# };
accounts.email = {
maildirBasePath = ".mail";
# maildirBasePath = ".mail";
accounts.autistici = {
address = "andrea.ciceri@autistici.org";
gpg = {
key = "7A66EEA1E6C598D07D361287A1FC89532D1C565";
signByDefault = true;
};
imap.host = "mail.autistici.org";
mbsync = {
enable = true;
create = "maildir";
imap = {
host = "mail.autistici.org";
port = 993;
};
msmtp.enable = true;
notmuch.enable = true;
# mbsync = {
# enable = true;
# create = "maildir";
# };
# msmtp.enable = true;
# notmuch.enable = true;
primary = true;
realName = "Andrea Ciceri";
signature = {
# text = '''';
text = ''
Andrea Ciceri
'';
showSignature = "append";
};
passwordCommand = "${pkgs.pass}/bin/pass show autistici/password";
passwordCommand = "${pkgs.coreutils}/bin/cat ${secrets.autistici-password.path}";
smtp = {
host = "smtp.autistici.org";
};
userName = "andrea.ciceri@autistici.org";
};
accounts.mlabs = {
address = "andreaciceri@mlabs.city";
imap = {
host = "imap.gmail.com";
port = 993;
};
realName = "Andrea Ciceri";
smtp.host = "smtp.gmail.com";
userName = "andreaciceri@mlabs.city";
};
};
}

View file

@ -28,7 +28,7 @@
# fx_cast # TODO make PR to rycee NUR repo
];
settings = {
"browser.startup.homepage" = "https://google.com";
"browser.startup.homepage" = "https://google.it";
"browser.search.region" = "IT";
"browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "it-IT";
@ -54,6 +54,19 @@
}
];
};
"Google IT" = {
urls = [
{
template = "https://www.google.it/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
};
};
};
};

View file

@ -4,7 +4,7 @@
email = "andrea.ciceri@autistici.org";
};
in {
home.packages = [pkgs.gitoxide];
imports = [../gitui ../lazygit];
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
@ -18,6 +18,8 @@ in {
user.signingKey = "/home/ccr/.ssh/id_rsa";
gpg.format = "ssh";
commit.gpgsign = true;
core.editor = "hx";
};
userName = config.name;
@ -35,7 +37,7 @@ in {
};
delta = {
enable = true;
enable = false; # Playing with difftastic at the moment
options = {
features = "decorations";
delta = {
@ -43,5 +45,10 @@ in {
};
};
};
difftastic = {
enable = true;
background = "dark";
};
};
}

View file

@ -0,0 +1,3 @@
{
programs.gitui.enable = true;
}

View file

@ -1,13 +1,12 @@
{
config,
lib,
pkgs,
...
}: {
programs.helix = {
enable = true;
settings = {
theme = "onedark";
theme = "dracula";
editor = {
indent-guides.render = true;
cursor-shape = {
@ -15,7 +14,10 @@
normal = "block";
select = "underline";
};
true-color = true; # to make colors coherent when in ssh
};
};
};
home.sessionVariables.EDITOR = lib.mkForce "${config.programs.helix.package}/bin/helix";
programs.nushell.environmentVariables.EDITOR = lib.mkForce config.home.sessionVariables.EDITOR;
}

View file

@ -57,12 +57,17 @@ in {
exec-once = ${config.programs.waybar.package}/bin/waybar
exec-once = ${config.services.mako.package}/bin/mako
exec-once = ${pkgs.hyprpaper}/bin/hyprpaper
exec-once = ${config.programs.thunderbird.package}/bin/thunderbird
windowrulev2 = tile, class:^(Spotify)$
windowrulev2 = workspace 9, class:^(Spotify)$
windowrulev2 = workspace 8, class:thunderbird
bind = SUPER , F, exec, firefox
bind = SUPER , RETURN, exec, ${config.programs.kitty.package}/bin/kitty ${config.programs.kitty.package}/bin/kitty +kitten ssh mothership.fleet
bind = SUPER, b, exec, firefox
bind = SUPER SHIFT, b , exec, ${pkgs.waypipe}/bin/waypipe --compress lz4=10 ssh mothership.fleet firefox
bind = SUPER SHIFT, RETURN, exec, ${config.programs.kitty.package}/bin/kitty ssh mothership.fleet
bind = SUPER, m, exec, ${config.programs.kitty.package}/bin/kitty mosh mothership.fleet
bind = SUPER, RETURN, exec, ${config.programs.kitty.package}/bin/kitty
bind = SUPER, x, exec, emacsclient -c
bind = SUPER, y, exec, ${pkgs.waypipe}/bin/waypipe --compress lz4=10 ssh mothership.fleet emacsclient -c
bind = SUPER, d, exec, ${pkgs.fuzzel}/bin/fuzzel --background-color=253559cc --border-radius=5 --border-width=0
@ -116,14 +121,14 @@ in {
rounding = 4
blur = true
blur_size = 3
blur_size = 8
blur_passes = 1
blur_new_optimizations = true
drop_shadow = true
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
col.shadow = rgba(a8cfee11)
}
animations {

View file

@ -1,4 +1,4 @@
{
{pkgs, ...}: {
programs.kitty = {
enable = true;
font = {
@ -9,5 +9,49 @@
disable_ligatures = "cursor";
confirm_os_window_close = 0;
};
theme = "Snazzy";
# extraConfig = ''
# include ${pkgs.writeText "custom-kitty-theme" ''
# # vim:ft=kitty
# background #252D30
# foreground #ABB2BF
# cursor #ABB2BF
# selection_background #636C6E
# #: black
# color0 #16181A
# color8 #818b95
# #: red
# color1 #D05C65
# color9 #e7adb2
# #: green
# color2 #7DA869
# color10 #bdd3b3
# #: yellow
# color3 #D5B06B
# color11 #ead7b4
# #: blue
# color4 #519FDF
# color12 #A8CFEE
# #: magenta
# color5 #B668CD
# color13 #DAB3E6
# #: cyan
# color6 #46A6B2
# color14 #a0D3DA
# #: white
# color7 #ABB2BF
# color15 #d4D8DF
# selection_foreground #636C6E
# ''}
# '';
};
}

View file

@ -0,0 +1,12 @@
{pkgs, ...}: {
programs.lazygit = {
enable = true;
settings = {
git.paging = {
colorArg = "always";
useConfig = true;
pager = "${pkgs.delta}/bin/delta --dark --paging=never";
};
};
};
}

View file

@ -0,0 +1,3 @@
{pkgs, ...}: {
home.packages = [pkgs.remmina];
}

View file

@ -76,7 +76,7 @@
case_sensitive: false # set to true to enable case-sensitive completions
quick: true # set this to false to prevent auto-selecting completions when only one remains
partial: true # set this to false to prevent partial filling of the prompt
algorithm: "prefix" # prefix or fuzzy
algorithm: "fuzzy" # prefix or fuzzy
external: {
enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
@ -87,8 +87,8 @@
metric: true # true => KB, MB, GB (ISO standard), false => KiB, MiB, GiB (Windows standard)
format: "auto" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, zb, zib, auto
}
buffer_editor: "${config.programs.helix.package}/bin/helix"
}
let-env TERM = "screen"
'';
};
@ -145,6 +145,7 @@
thefuck
htop-vim
dig.dnsutils
lsof
zsh-completions
nix-zsh-completions
carapace # used by nushell

View file

@ -0,0 +1,24 @@
{
imports = [../email];
config = {
accounts.email.accounts = {
autistici.thunderbird = {
enable = true;
profiles = ["default"];
};
mlabs.thunderbird = {
enable = true;
profiles = ["default"];
};
};
programs.thunderbird = {
enable = true;
profiles = {
default = {
isDefault = true;
};
# mlabs = {};
};
};
};
}