add mail
nixos config pipeline / show-flake (push) Successful in 42s
nixos config pipeline / deploy (push) Successful in 1m4s

This commit is contained in:
smayzy
2026-03-06 19:56:49 +01:00
parent 5ce68a33b6
commit 75f60590ad
13 changed files with 245 additions and 12 deletions
+1
View File
@@ -2,5 +2,6 @@
{
imports = [
./fastfetch.nix
./mail.nix
];
}
+29
View File
@@ -0,0 +1,29 @@
{
lib,
smayzy,
...
}:
let
mkIf = lib.mkIf;
in
{
config = mkIf smayzy.mail.enable {
home.file = {
".config/neomutt" = {
source = builtins.toPath ../../../dotfiles/neomutt;
recursive = true;
force = true;
};
".config/isyncrc" = {
source = builtins.toPath ../../../dotfiles/isyncrc;
recursive = true;
force = true;
};
".config/msmtp" = {
source = builtins.toPath ../../../dotfiles/msmtp;
recursive = true;
force = true;
};
};
};
}
+1 -4
View File
@@ -31,6 +31,7 @@ in
chromium.enable = true;
wireshark.enable = true;
alacritty.enable = true;
mail.enable = true;
};
programs.firefox.enable = true;
environment.systemPackages = with pkgs; [
@@ -54,10 +55,6 @@ in
arduino-cli
firejail
qbittorrent
neomutt
pass
isync
msmtp
];
};
}
+1 -4
View File
@@ -36,6 +36,7 @@ in
chromium.enable = true;
wireshark.enable = true;
steam.enable = true;
mail.enable = true;
};
programs.firefox.enable = true;
@@ -59,10 +60,6 @@ in
arduino-ide
arduino-cli
firejail
neomutt
pass
isync
msmtp
];
};
}
+1
View File
@@ -3,5 +3,6 @@
imports = [
./openssh.nix
./wireshark.nix
./mail.nix
];
}
+26
View File
@@ -0,0 +1,26 @@
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.mail.enable = mkOption {
type = types.bool;
default = false;
description = "enables neomut isync and msmtp";
};
config = mkIf config.smayzy.mail.enable {
environment.systemPackages = with pkgs; [
neomutt
isync
msmtp
pass
];
programs.gnupg.agent.enable = true;
};
}