aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-03-05 16:11:26 -0500
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-03-05 16:11:26 -0500
commitbaedef6e4bef3b4ddbb9fe0c6b00dc160ddedc83 (patch)
tree6f399e4818320f005c746a100a56d218ab96d889 /modules
parent9b2446c2c5fd1cf5a6a1d818df7194b477e7ebbd (diff)
downloadhome-baedef6e4bef3b4ddbb9fe0c6b00dc160ddedc83.tar.gz
gpg
Diffstat (limited to 'modules')
-rw-r--r--modules/default.nix1
-rw-r--r--modules/gpg/default.nix25
-rw-r--r--modules/sway/default.nix2
3 files changed, 27 insertions, 1 deletions
diff --git a/modules/default.nix b/modules/default.nix
index a0510dc..d881953 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -9,5 +9,6 @@
./neovim
./qutebrowser
./services
+ ./gpg
];
}
diff --git a/modules/gpg/default.nix b/modules/gpg/default.nix
new file mode 100644
index 0000000..85682b6
--- /dev/null
+++ b/modules/gpg/default.nix
@@ -0,0 +1,25 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.modules.gpg;
+
+ inherit (lib) mkEnableOption mkOption mkIf types;
+in
+{
+ options.modules.gpg = {
+ enable = mkEnableOption "gpg";
+ };
+
+ config = mkIf cfg.enable {
+ services.gpg-agent = {
+ enable = true;
+ # TODO: look into forwarding and extra socket, seems useful
+ enableBashIntegration = true;
+ enableZshIntegration = true;
+ # enableNushellIntegration = true;
+ enableSshSupport = true;
+ noAllowExternalCache = true;
+ pinentryPackage = pkgs.pinentry-qt;
+# sshKeys = [ "36663E191B00E51513F90FA5CF2BCE8461C297CD" ];
+ };
+ };
+}
diff --git a/modules/sway/default.nix b/modules/sway/default.nix
index 5d81354..3027bad 100644
--- a/modules/sway/default.nix
+++ b/modules/sway/default.nix
@@ -183,7 +183,7 @@ in
"${modifier}+Shift+c" = "kill";
"${modifier}+Shift+r" = "reload";
- "${modifier}+Shift+q" = "exec swaynag -t warning -m 'do you really want to exit?' -B 'yes, exit' 'exit-sway'";
+ "${modifier}+Shift+q" = "exec swaynag -t warning -m 'do you really want to exit?' -B 'yes, exit' 'swaymsg exit'";
"${modifier}+${left}" = "focus left";
"${modifier}+${down}" = "focus down";