about summary refs log tree commit diff stats
path: root/hm/soispha/conf
diff options
context:
space:
mode:
Diffstat (limited to 'hm/soispha/conf')
-rw-r--r--hm/soispha/conf/gpg/default.nix21
-rw-r--r--hm/soispha/conf/zsh/default.nix2
2 files changed, 8 insertions, 15 deletions
diff --git a/hm/soispha/conf/gpg/default.nix b/hm/soispha/conf/gpg/default.nix
index d0cc33a2..60c2ef2a 100644
--- a/hm/soispha/conf/gpg/default.nix
+++ b/hm/soispha/conf/gpg/default.nix
@@ -13,6 +13,7 @@
       onlykey-agent
     ];
   };
+
   settings =
     if nixosConfig.networking.hostName == "isimud"
     then {}
@@ -23,20 +24,12 @@
       default-key = "Soispha <soispha@vhack.eu>";
       # TODO: add more
     };
-  gpg-agent =
-    if nixosConfig.networking.hostName == "isimud"
-    then {
-      enable = true;
-      enableZshIntegration = true;
-      enableScDaemon = true; # smartcards and such things
-      pinentryFlavor = "tty";
-    }
-    else {
-      enable = false;
-      enableZshIntegration = true;
-      enableScDaemon = true; # smartcards and such things
-      pinentryFlavor = "tty";
-    };
+  gpg-agent = {
+    enable = nixosConfig.networking.hostName == "isimud";
+    enableZshIntegration = true;
+    enableScDaemon = true; # smartcards and such things
+    pinentryPackage = pkgs.pinentry-tty;
+  };
 in {
   programs.gpg = {
     enable = true;
diff --git a/hm/soispha/conf/zsh/default.nix b/hm/soispha/conf/zsh/default.nix
index fc0387aa..45d4fe46 100644
--- a/hm/soispha/conf/zsh/default.nix
+++ b/hm/soispha/conf/zsh/default.nix
@@ -13,7 +13,7 @@
   home.sessionPath = [];
   programs.zsh = {
     enable = true;
-    enableAutosuggestions = true;
+    autosuggestion.enable = true;
     enableCompletion = true;
     syntaxHighlighting.enable = true;