1
Fork 0

Clean up home dir a bit

This commit is contained in:
prescientmoon 2024-09-01 00:15:33 +02:00
parent c0a5d1f8cc
commit 04a66f7f98
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
6 changed files with 42 additions and 47 deletions

View file

@ -25,6 +25,7 @@
# signal-desktop # Signal client # signal-desktop # Signal client
# element-desktop # Matrix client # element-desktop # Matrix client
# zoom-us # Zoom client 🤮 # zoom-us # Zoom client 🤮
whatsapp-for-linux
# }}} # }}}
# {{{ Editors for different formats # {{{ Editors for different formats
gimp # Image editing gimp # Image editing

View file

@ -1,4 +1,5 @@
{ config, ... }: { { config, ... }:
{
sops.secrets.moonythm_mail_pass.sopsFile = ./secrets.yaml; sops.secrets.moonythm_mail_pass.sopsFile = ./secrets.yaml;
programs.msmtp.enable = true; programs.msmtp.enable = true;
@ -14,7 +15,7 @@
accounts.email.accounts = { accounts.email.accounts = {
# {{{ Moonythm # {{{ Moonythm
moonythm = rec { moonythm = rec {
# {{{ Primary config # {{{ Primary config
address = "colimit@moonythm.dev"; address = "colimit@moonythm.dev";
realName = "prescientmoon"; realName = "prescientmoon";
userName = address; userName = address;
@ -61,10 +62,16 @@
neomutt = { neomutt = {
enable = true; enable = true;
sendMailCommand = "msmtpq --read-envelope-from --read-recipients"; sendMailCommand = "msmtpq --read-envelope-from --read-recipients";
extraMailboxes = [ "Archive" "Drafts" "Junk" "Sent" "Trash" ]; extraMailboxes = [
"Archive"
"Drafts"
"Junk"
"Sent"
"Trash"
];
}; };
# }}} # }}}
# {{{ Aerc # {{{ Aerc
aerc = { aerc = {
enable = true; enable = true;
}; };
@ -79,9 +86,9 @@
extraConfig.general.unsafe-accounts-conf = true; extraConfig.general.unsafe-accounts-conf = true;
}; };
# }}} # }}}
# {{{ Neomutt # {{{ Neomutt
programs.neomutt = { programs.neomutt = {
# {{{ Primary config # {{{ Primary config
enable = true; enable = true;
vimKeys = true; vimKeys = true;
checkStatsInterval = 60; # How often to check for new mail checkStatsInterval = 60; # How often to check for new mail
@ -92,30 +99,42 @@
# }}} # }}}
binds = [ binds = [
# {{{ Toggle sidebar # {{{ Toggle sidebar
{ {
map = [ "index" "pager" ]; map = [
"index"
"pager"
];
key = "B"; key = "B";
action = "sidebar-toggle-visible"; action = "sidebar-toggle-visible";
} }
# }}} # }}}
# {{{ Highlight previous sidebar item # {{{ Highlight previous sidebar item
{ {
map = [ "index" "pager" ]; map = [
"index"
"pager"
];
key = "\\CK"; key = "\\CK";
action = "sidebar-prev"; action = "sidebar-prev";
} }
# }}} # }}}
# {{{ Highlight next sidebar item # {{{ Highlight next sidebar item
{ {
map = [ "index" "pager" ]; map = [
"index"
"pager"
];
key = "\\CJ"; key = "\\CJ";
action = "sidebar-next"; action = "sidebar-next";
} }
# }}} # }}}
# {{{ Open highlighted sidebar item # {{{ Open highlighted sidebar item
{ {
map = [ "index" "pager" ]; map = [
"index"
"pager"
];
key = "\\CO"; key = "\\CO";
action = "sidebar-open"; action = "sidebar-open";
} }
@ -144,7 +163,7 @@
extraConfig = '' extraConfig = ''
# Starting point: https://seniormars.com/posts/neomutt/#introduction-and-why # Starting point: https://seniormars.com/posts/neomutt/#introduction-and-why
# {{{ Settings # {{{ Settings
set pager_index_lines = 10 set pager_index_lines = 10
set pager_context = 3 # show 3 lines of context set pager_context = 3 # show 3 lines of context
set pager_stop # stop at end of message set pager_stop # stop at end of message
set menu_scroll # scroll menu set menu_scroll # scroll menu
@ -334,7 +353,11 @@
exec = "neomutt %U"; exec = "neomutt %U";
icon = "mutt"; icon = "mutt";
terminal = true; terminal = true;
categories = [ "Network" "Email" "ConsoleOnly" ]; categories = [
"Network"
"Email"
"ConsoleOnly"
];
type = "Application"; type = "Application";
mimeType = [ "x-scheme-handler/mailto" ]; mimeType = [ "x-scheme-handler/mailto" ];
}; };
@ -345,10 +368,8 @@
}; };
# }}} # }}}
# }}} # }}}
# {{{ Storage & persistence # {{{ Storage & persistence
accounts.email.maildirBasePath = "${config.home.homeDirectory}/maildir"; accounts.email.maildirBasePath = "${config.xdg.dataHome}/maildir";
satellite.persistence.at.data.apps.mail.directories = [ satellite.persistence.at.data.apps.mail.directories = [ config.accounts.email.maildirBasePath ];
config.accounts.email.maildirBasePath
];
# }}} # }}}
} }

View file

@ -5,7 +5,7 @@
... ...
}: }:
let let
workflowDir = "${config.home.homeDirectory}/productivity/smos"; workflowDir = "${config.xdg.dataHome}/smos/workflow";
in in
{ {
sops.secrets.smos_password.sopsFile = ../secrets.yaml; sops.secrets.smos_password.sopsFile = ../secrets.yaml;

View file

@ -1,4 +0,0 @@
{
authorizedKeys = { outputs, lib }:
}

View file

@ -1,23 +0,0 @@
# For more comments check out [pilot](./pilot.nix)
{
pkgs,
outputs,
lib,
...
}:
{
users.mutableUsers = false;
users.users.guest = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = [
"wheel"
"audio"
"video"
"network"
"tty"
];
password = "heyo";
openssh.authorizedKeys.keyFiles = (import ./common.nix).authorizedKeys { inherit outputs lib; };
};
}

View file

@ -12,7 +12,7 @@
# {{{ Password handling # {{{ Password handling
sops.secrets.pilot_password = { sops.secrets.pilot_password = {
sopsFile = ../secrets.yaml; sopsFile = ../../secrets.yaml;
neededForUsers = true; neededForUsers = true;
}; };
# }}} # }}}