Compare commits
No commits in common. "ef9f891482a337bdca9a0e5cef33d356240b52db" and "ff9de17d04d2d3107ff6c1505608673abf851df2" have entirely different histories.
ef9f891482
...
ff9de17d04
3 changed files with 8 additions and 36 deletions
|
@ -6,31 +6,12 @@ in {
|
||||||
options.sisyphus.hardware.yubikey.enable = lib.mkEnableOption "YubiKey support";
|
options.sisyphus.hardware.yubikey.enable = lib.mkEnableOption "YubiKey support";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs = {
|
|
||||||
gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
# TODO Necessary?
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# pinentryFlavor = "curses";
|
|
||||||
};
|
|
||||||
|
|
||||||
# yubikey-touch-detector.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable smart card reading
|
# Enable smart card reading
|
||||||
services.pcscd.enable = true;
|
services.pcscd.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
programs.gnupg.agent = {
|
||||||
yubikey-touch-detector
|
|
||||||
];
|
|
||||||
|
|
||||||
# Send a notification if the YubiKey is waiting for touch.
|
|
||||||
systemd.user.services.yubikey-touch-detector = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Detects when your YubiKey is waiting for a touch";
|
pinentryFlavor = "curses";
|
||||||
path = with pkgs; [ yubikey-touch-detector ];
|
|
||||||
script = ''exec yubikey-touch-detector --notify'';
|
|
||||||
environment.YUBIKEY_TOUCH_DETECTOR_LIBNOTIFY = "true";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,10 +70,6 @@ in {
|
||||||
"mail.server.server_${id}.authMethod" = 10;
|
"mail.server.server_${id}.authMethod" = 10;
|
||||||
"mail.smtpserver.smtp_${id}.authMethod" = 10;
|
"mail.smtpserver.smtp_${id}.authMethod" = 10;
|
||||||
"mail.identity.id_${id}.htmlSigText" = signatures.UGent;
|
"mail.identity.id_${id}.htmlSigText" = signatures.UGent;
|
||||||
|
|
||||||
# Allow PGP
|
|
||||||
"mail.identity.id_${id}.openpgp_key_id" = "9B11F5243089DB5B"; # Your 'master' key
|
|
||||||
"mail.identity.id_${id}.attachPgpKey" = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -121,15 +117,10 @@ in {
|
||||||
profiles.tdpeuter = {
|
profiles.tdpeuter = {
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
settings = {
|
settings = {
|
||||||
# View
|
|
||||||
"mailnews.default_sort_order" = 2; # Sort descending
|
"mailnews.default_sort_order" = 2; # Sort descending
|
||||||
"mailnews.mark_message_read.delay" = true;
|
"mailnews.mark_message_read.delay" = true;
|
||||||
"mailnews.start_page.enabled" = false;
|
"mailnews.start_page.enabled" = false;
|
||||||
"mail.pane_config.dynamic" = 2; # Vertical view
|
"mail.pane_config.dynamic" = 2; # Vertical view
|
||||||
|
|
||||||
# Encryption
|
|
||||||
"mail.openpgp.allow_external_gnupg" = true; # Enable YubiKey GPG signing
|
|
||||||
"mail.e2ee.auto_enable" = true; # Automatically enable encryption when possible.
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,8 +16,8 @@ set {
|
||||||
$scrollDown button5
|
$scrollDown button5
|
||||||
|
|
||||||
# $term kitty || alacritty || foot
|
# $term kitty || alacritty || foot
|
||||||
$term foot
|
$term kitty
|
||||||
$menu j4-dmenu-desktop --dmenu="rofi -dmenu -i" --no-generic --usage-log="/home/tdpeuter/.local/state/dmenu.log" --term=$term
|
$menu j4-dmenu-desktop --dmenu "rofi -dmenu -i" --usage-log="/home/tdpeuter/.local/state/dmenu.log"
|
||||||
# TODO Find better location and better way to reference this.
|
# TODO Find better location and better way to reference this.
|
||||||
$window_switcher /home/tdpeuter/projects/fzf-jump/new.sh
|
$window_switcher /home/tdpeuter/projects/fzf-jump/new.sh
|
||||||
$lock swaylock -f
|
$lock swaylock -f
|
||||||
|
|
Loading…
Reference in a new issue