aerc mail (not finished)
This commit is contained in:
parent
c2df22d206
commit
5fc5da19f8
12 changed files with 86 additions and 85 deletions
2
hive.nix
2
hive.nix
|
@ -12,7 +12,7 @@ in {
|
||||||
networking.hostName = name;
|
networking.hostName = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
kat-probook = { name, nodes, ... }: {
|
kat-probook = { name, nodes, users, ... }: {
|
||||||
deployment.allowLocalDeployment = true;
|
deployment.allowLocalDeployment = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
||||||
|
|
||||||
{ config, lib, pkgs, mods, ... }:
|
{ config, lib, pkgs, mods, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
<agenix/modules/age.nix>
|
||||||
|
./secrets.nix
|
||||||
# ./router.nix
|
# ./router.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
boot.supportedFilesystems = [ "bcachefs" ];
|
boot.supportedFilesystems = [ "bcachefs" ];
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
networking.networkmanager.enable = true;
|
||||||
time.timeZone = "Europe/Paris";
|
time.timeZone = "Europe/Paris";
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
@ -23,21 +23,7 @@
|
||||||
keyMap = "fr";
|
keyMap = "fr";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
# services.xserver.enable = true;
|
|
||||||
|
|
||||||
# security.polkit.enable = true;
|
|
||||||
# programs.light.enable = true;
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
# services.xserver.xkb.layout = "us";
|
|
||||||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
# services.printing.enable = true;
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
pulseaudio = {
|
pulseaudio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -49,12 +35,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(pkgs.callPackage <agenix/pkgs/agenix.nix> {})
|
(pkgs.callPackage <agenix/pkgs/agenix.nix> {})
|
||||||
wget
|
wget
|
||||||
|
@ -74,9 +54,6 @@
|
||||||
font-awesome
|
font-awesome
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
|
@ -101,43 +78,9 @@
|
||||||
};
|
};
|
||||||
services.netbird.enable = true;
|
services.netbird.enable = true;
|
||||||
|
|
||||||
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
|
# boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
|
||||||
programs.virt-manager.enable = true;
|
# programs.virt-manager.enable = true;
|
||||||
virtualisation.libvirtd.enable = true;
|
# virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
# services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
|
||||||
# accidentally delete configuration.nix.
|
|
||||||
# system.copySystemConfiguration = true;
|
|
||||||
|
|
||||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
|
||||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
|
||||||
#
|
|
||||||
# Most users should NEVER change this value after the initial install, for any reason,
|
|
||||||
# even if you've upgraded your system to a new NixOS release.
|
|
||||||
#
|
|
||||||
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
|
||||||
# so changing it will NOT upgrade your system.
|
|
||||||
#
|
|
||||||
# This value being lower than the current NixOS release does NOT mean your system is
|
|
||||||
# out of date, out of support, or vulnerable.
|
|
||||||
#
|
|
||||||
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
|
||||||
# and migrated your data accordingly.
|
|
||||||
#
|
|
||||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
|
||||||
|
|
||||||
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
20
machines/kat-probook/secrets.nix
Normal file
20
machines/kat-probook/secrets.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
let
|
||||||
|
cat-owned = {
|
||||||
|
owner = "catvayor";
|
||||||
|
group = "users";
|
||||||
|
mode = "400";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
age.identityPaths = [
|
||||||
|
"/root/.ssh/passwd"
|
||||||
|
];
|
||||||
|
age.secrets = {
|
||||||
|
mails-laposte = cat-owned // { file = ./secrets/mails-laposte.age; };
|
||||||
|
mails-dgnum = cat-owned // { file = ./secrets/mails-dgnum.age; };
|
||||||
|
mails-kat = cat-owned // { file = ./secrets/mails-kat.age; };
|
||||||
|
clipper = cat-owned // { file = ./secrets/clipper.age; };
|
||||||
|
"geek.gle" = cat-owned // { file = ./secrets/geek.gle.age; };
|
||||||
|
"pro.gle" = cat-owned // { file = ./secrets/pro.gle.age; };
|
||||||
|
};
|
||||||
|
}
|
6
machines/kat-probook/secrets/clipper.age
Normal file
6
machines/kat-probook/secrets/clipper.age
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 E2Pe/w fKbPvFIJAXM8TDFmo4XTPJE4pGgd7wlaESQStoarJzU
|
||||||
|
stVwG/E9IZrBFERM5nvFZ90cPTU9h5jhvyxPzyPdiJw
|
||||||
|
--- 5GMhLnktvFb3jPYjdUtBluxtBy/Qh2RwHiaWevBBpxk
|
||||||
|
éY Ã86³Š
|
||||||
|
åé좻)F?î§`¾1¿–>çÞö÷3zþÚT7<54>:ÏÀ2Ë
|
5
machines/kat-probook/secrets/geek.gle.age
Normal file
5
machines/kat-probook/secrets/geek.gle.age
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 E2Pe/w IBQxzBU0CK1apU9wBAHzK0KRBz6+oOtNKPJf7xop5Rk
|
||||||
|
VPvTUf/E4ufpMcV/rcA86vqaGorbeYotkfi+WJvszrY
|
||||||
|
--- M1xL9158btC4gMcnkzW4O1AIq0Cp29vbuMHgx7r/ikk
|
||||||
|
¶õ†ëWv–w,a0UwTaî
ž!, ›<C2A0>-Q•a<E280A2>؈”ÂÇ
|
5
machines/kat-probook/secrets/mails-dgnum.age
Normal file
5
machines/kat-probook/secrets/mails-dgnum.age
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 E2Pe/w Q5+tIZotkH9PWuowU9kFoPxWhNZxV2VnATpZWNJNgCA
|
||||||
|
uAfcjgxBaZFIqbgJ0McQ00zJehvuStu93OxuGUpUfzw
|
||||||
|
--- 9/EmJlBSamkUNoIO6FcvJgTh1uUNp/I2DDEdBULq1vA
|
||||||
|
…ÒÝU=
µ3<18>•VÄ’;4œ7û‡ÐWxg(·ÄŒ)¨i/
ºCAKV•àbnÜž@Ý|{x`dºLtµ‚œF²ñr7ΦÄͯe^ß‹ˆEc›Uc£DòàJz¼”‹ZoZVͤ<C38D>
&ð.†qê‡F8ædr
ŒÌ»^#I‹Ï›°DLJäŠn¨ºw NuÊa!ýÉów!Te«:11ÀqÈ
|
5
machines/kat-probook/secrets/mails-kat.age
Normal file
5
machines/kat-probook/secrets/mails-kat.age
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 E2Pe/w vxqJ5Fi91BQTuDee/sfgCP/OKSr0MI0+ZW9Z1ANatSo
|
||||||
|
n2tjy8ZGys903UL3Jds+DZdITPleaiog9tiVxbTQKK4
|
||||||
|
--- D/267emJgBVqQs8zwXJXyVaX/w9PHIrw1xQWF379Qt0
|
||||||
|
|šÛr<72>üu²DpÛ¯2äËØÞB¨·¬5t) ~³Mò‚ÜÓñ.÷¬2fc/<2F> ®]¶=3qL‘*ý¯"30É«
|
5
machines/kat-probook/secrets/mails-laposte.age
Normal file
5
machines/kat-probook/secrets/mails-laposte.age
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 E2Pe/w 5BundyCk4QzQLGoJH1gK1MnTz1Fq3SVBRoIQfGfKkR4
|
||||||
|
5K/y5un1RaYDr+k4I1NMqlPgZ4YppTwsIv7QckonlH0
|
||||||
|
--- OiYieMVqXV1kkd4/NdeZH7tK4xSMTJaYii89jC0XuLw
|
||||||
|
½þ´hëý¸þAq‘œøšf@oºé‰’å¿Vc|¶ò©Ð6k{0X2ÆnJwâ¢
|
5
machines/kat-probook/secrets/pro.gle.age
Normal file
5
machines/kat-probook/secrets/pro.gle.age
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 E2Pe/w CbIRO5NPZT3HFrlXldeBrrZKWV32RSYhPl/7AyLP9xw
|
||||||
|
NC/F2n3q0DSOzj7DOvtC3GazTQLGFTY3eDNE+z9+rnM
|
||||||
|
--- d05OfbEL/yBRLe/Gg7b8aha41wuL6gTJfkFgSVPdVfM
|
||||||
|
%JUOåË¿Iîù¡?ËÐ8"·ÀbÙH¸0/’À1Z…ê@øÊ€QVõ&^ðKÓgÏ~‘2&d-1<>"NÖ8þNl7j…ŽÊmt¨êÏOxE³EBàîÛΣŽõA¿Ø<C2BF>#6nò"—=À9sæž\•@¤¸©ý<C2A9>¶zÇýµ×™&F_‰v\G
|
10
machines/kat-probook/secrets/secrets.nix
Normal file
10
machines/kat-probook/secrets/secrets.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
let
|
||||||
|
pub-key = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBtlIx8XVse0m+Aqf4DuxzYdeF6gh/nObNzfrHJOn3Ik" ];
|
||||||
|
in {
|
||||||
|
"mails-laposte.age".publicKeys = pub-key;
|
||||||
|
"mails-dgnum.age".publicKeys = pub-key;
|
||||||
|
"mails-kat.age".publicKeys = pub-key;
|
||||||
|
"clipper.age".publicKeys = pub-key;
|
||||||
|
"geek.gle.age".publicKeys = pub-key;
|
||||||
|
"pro.gle.age".publicKeys = pub-key;
|
||||||
|
}
|
|
@ -1,18 +1,15 @@
|
||||||
{
|
{ pkgs, config, ... }: {
|
||||||
programs.thunderbird = {
|
programs.aerc = {
|
||||||
|
extraConfig.general.unsafe-accounts-conf = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles."nix" = {
|
|
||||||
isDefault = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
accounts.email.accounts =
|
accounts.email.accounts =
|
||||||
let
|
let
|
||||||
thunderbird = { enable = true; profiles = [ "nix" ]; };
|
aerc = { enable = true; };
|
||||||
in {
|
in {
|
||||||
"ens" = {
|
"ens" = {
|
||||||
primary = true;
|
primary = true;
|
||||||
inherit thunderbird;
|
inherit aerc;
|
||||||
address = "lubin.bailly@ens.psl.eu";
|
address = "lubin.bailly@ens.psl.eu";
|
||||||
realName = "Lubin Bailly";
|
realName = "Lubin Bailly";
|
||||||
userName = "lbailly";
|
userName = "lbailly";
|
||||||
|
@ -21,7 +18,7 @@
|
||||||
showSignature = "append";
|
showSignature = "append";
|
||||||
text = "Lubin Bailly";
|
text = "Lubin Bailly";
|
||||||
};
|
};
|
||||||
# passwordCommand
|
passwordCommand = "cat /run/agenix/clipper";
|
||||||
imap = {
|
imap = {
|
||||||
host = "clipper.ens.psl.eu";
|
host = "clipper.ens.psl.eu";
|
||||||
port = 993;
|
port = 993;
|
||||||
|
@ -34,7 +31,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"katmail" = {
|
"katmail" = {
|
||||||
inherit thunderbird;
|
inherit aerc;
|
||||||
address = "catvayor@katvayor.net";
|
address = "catvayor@katvayor.net";
|
||||||
realName = "catvayor";
|
realName = "catvayor";
|
||||||
userName = "catvayor@katvayor.net";
|
userName = "catvayor@katvayor.net";
|
||||||
|
@ -43,7 +40,7 @@
|
||||||
showSignature = "append";
|
showSignature = "append";
|
||||||
text = "catvayor";
|
text = "catvayor";
|
||||||
};
|
};
|
||||||
# passwordCommand
|
passwordCommand = "cat /run/agenix/mails-kat";
|
||||||
imap = {
|
imap = {
|
||||||
host = "ssl0.ovh.net";
|
host = "ssl0.ovh.net";
|
||||||
port = 993;
|
port = 993;
|
||||||
|
@ -56,7 +53,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"dgnum" = {
|
"dgnum" = {
|
||||||
inherit thunderbird;
|
inherit aerc;
|
||||||
address = "catvayor@dgnum.eu";
|
address = "catvayor@dgnum.eu";
|
||||||
realName = "catvayor";
|
realName = "catvayor";
|
||||||
userName = "catvayor@dgnum.eu";
|
userName = "catvayor@dgnum.eu";
|
||||||
|
@ -65,7 +62,7 @@
|
||||||
showSignature = "append";
|
showSignature = "append";
|
||||||
text = "catvayor";
|
text = "catvayor";
|
||||||
};
|
};
|
||||||
# passwordCommand
|
passwordCommand = "cat /run/agenix/mails-dgnum";
|
||||||
imap = {
|
imap = {
|
||||||
host = "kurisu.lahfa.xyz";
|
host = "kurisu.lahfa.xyz";
|
||||||
port = 993;
|
port = 993;
|
||||||
|
@ -79,7 +76,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"gmail.geek" = {
|
"gmail.geek" = {
|
||||||
inherit thunderbird;
|
inherit aerc;
|
||||||
address = "lubin.geek@gmail.com";
|
address = "lubin.geek@gmail.com";
|
||||||
realName = "Lubin Bailly";
|
realName = "Lubin Bailly";
|
||||||
userName = "lubin.geek@gmail.com";
|
userName = "lubin.geek@gmail.com";
|
||||||
|
@ -88,7 +85,7 @@
|
||||||
showSignature = "append";
|
showSignature = "append";
|
||||||
text = "Lubin Bailly";
|
text = "Lubin Bailly";
|
||||||
};
|
};
|
||||||
# passwordCommand
|
passwordCommand = "cat /run/agenix/geek.gle";
|
||||||
imap = {
|
imap = {
|
||||||
host = "imap.gmail.com";
|
host = "imap.gmail.com";
|
||||||
port = 993;
|
port = 993;
|
||||||
|
@ -101,7 +98,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"gmail.pro" = {
|
"gmail.pro" = {
|
||||||
inherit thunderbird;
|
inherit aerc;
|
||||||
address = "lubin.bailly@gmail.com";
|
address = "lubin.bailly@gmail.com";
|
||||||
realName = "Lubin Bailly";
|
realName = "Lubin Bailly";
|
||||||
userName = "lubin.bailly@gmail.com";
|
userName = "lubin.bailly@gmail.com";
|
||||||
|
@ -110,7 +107,7 @@
|
||||||
showSignature = "append";
|
showSignature = "append";
|
||||||
text = "Lubin Bailly";
|
text = "Lubin Bailly";
|
||||||
};
|
};
|
||||||
# passwordCommand
|
passwordCommand = "cat /run/agenix/pro.gle";
|
||||||
imap = {
|
imap = {
|
||||||
host = "imap.gmail.com";
|
host = "imap.gmail.com";
|
||||||
port = 993;
|
port = 993;
|
||||||
|
@ -123,7 +120,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"laposte" = {
|
"laposte" = {
|
||||||
inherit thunderbird;
|
inherit aerc;
|
||||||
address = "lubin-bailly@laposte.net";
|
address = "lubin-bailly@laposte.net";
|
||||||
realName = "Lubin Bailly";
|
realName = "Lubin Bailly";
|
||||||
userName = "lubin-bailly";
|
userName = "lubin-bailly";
|
||||||
|
@ -132,7 +129,7 @@
|
||||||
showSignature = "append";
|
showSignature = "append";
|
||||||
text = "Lubin Bailly";
|
text = "Lubin Bailly";
|
||||||
};
|
};
|
||||||
# passwordCommand
|
passwordCommand = "cat /run/agenix/mails-laposte";
|
||||||
imap = {
|
imap = {
|
||||||
host = "imap.laposte.net";
|
host = "imap.laposte.net";
|
||||||
port = 993;
|
port = 993;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
home-manager.users.catvayor = {
|
home-manager.users.catvayor = {
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
imports = with mods.home; [ neovim zsh sway ssh ];
|
imports = with mods.home; [ neovim zsh sway ssh mail ];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
|
Loading…
Reference in a new issue