commit bc306b8d476f5710ab43b083e0be6af9e3756200
parent 8f69610fc22ddf199955fbbde772b3d070010e0b
Author: Vineet Kumar <git@vineetk.net>
Date: Fri, 9 Aug 2024 23:22:41 -0400
add gtk and aerc config
Diffstat:
2 files changed, 104 insertions(+), 19 deletions(-)
diff --git a/home.nix b/home.nix
@@ -1,26 +1,108 @@
{ config, pkgs, ... }:
{
- home.username = "vin";
- home.homeDirectory = "/home/vin";
- home.stateVersion = "24.05";
+ home = {
+ username = "vin";
+ homeDirectory = "/home/vin";
+ stateVersion = "24.05";
+
+ packages = with pkgs; [
+ aerc
+ alacritty # doing st/suckless declaratively seems like it'll suck
+ doas
+ kicad
+ librewolf
+ loksh
+ mpv
+ mupdf
+ neofetch
+ profanity
+ rclone
+ redshift
+ tmux
+ tree
+ ];
+
+ preferXdgDirectories = true;
+
+ sessionPath = [
+ "$HOME/bin"
+ "$HOME/.local/bin"
+ ];
+
+ sessionVariables = {
+ EDITOR = "vis";
+ };
+
+ shellAliases = {
+ gc = "git";
+ ls = "ls -F";
+ mpv = "mpv --save-position-on-quit";
+ };
+ };
programs.home-manager.enable = true;
- home.packages = with pkgs; [
- aerc
- alacritty # doing st/suckless declaratively seems like it'll suck
- doas
- kicad
- librewolf
- loksh
- mpv
- mupdf
- neofetch
- profanity
- rclone
- redshift
- tmux
- tree
- ];
+ gtk = {
+ enable = true;
+ font.name = "monospace 10";
+ iconTheme.name = "rose-pine";
+ iconTheme.package = pkgs.rose-pine-icon-theme;
+ theme.name = "rose-pine";
+ theme.package = pkgs.rose-pine-gtk-theme;
+ };
+
+ programs.aerc = {
+ enable = true;
+ extraAccounts = {
+ "vineetk" = {
+ source = "imaps://vineet%40vineetk.net@mail.vineetk.net";
+ outgoing = "smtps://vineet%40vineetk.net@mail.vineetk.net";
+ outgoing-cred-cmd = "angou pass email/vineetk";
+ source-cred-cmd = "angou pass email/vineetk";
+ default = "INBOX";
+ from = "\"Vineet Kumar\" <vineet@vineetk.net>";
+ copy-to = "Sent";
+ cache-headers = true;
+ };
+ "13f0" = {
+ source = "imaps://kar%4013f0.net@mail.vineetk.net";
+ outgoing = "smtps://kar%4013f0.net@mail.vineetk.net";
+ outgoing-cred-cmd = "angou pass email/13f0";
+ source-cred-cmd = "angou pass email/13f0";
+ default = "INBOX";
+ from = "kar <kar@13f0.net>";
+ copy-to = "Sent";
+ cache-headers = true;
+ };
+ };
+ extraConfig = {
+ general = {
+ unsafe-accounts-conf = true;
+ };
+ ui = {
+ fuzzy-complete = true;
+ #styleset-name = "monochrome";
+ threading-enabled = true;
+ };
+ filters = {
+ "message/delivery-status" = "colorize";
+ "message/rfc822" = "colorize";
+
+ "text/calendar" = "calendar";
+ "text/html" = "html-unsafe | colorize";
+ "text/plain" = "colorize";
+ };
+ openers = {
+ "application/pdf" = "mupdf";
+ "text/html" = "librewolf";
+ "text/plain" = "vis";
+ };
+ templates = {
+ "new-message" = "new_message";
+ "quoted-reply" = "quoted_reply";
+ "forwards" = "forward_as_body";
+ };
+ };
+ };
}
diff --git a/hosts/lappy/default.nix b/hosts/lappy/default.nix
@@ -90,6 +90,9 @@
programs.zsh.enable = true;
+ # for gtk in home-manager
+ programs.dconf.enable = true;
+
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;