From a6f1d07546dae82c3bdc4d925b7fc069bf85ec55 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Mon, 15 May 2023 22:45:58 +0200 Subject: [PATCH] Update signing to GPG instead of SSH --- nixos-configurations/shared.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nixos-configurations/shared.nix b/nixos-configurations/shared.nix index e04656f..e6913b7 100644 --- a/nixos-configurations/shared.nix +++ b/nixos-configurations/shared.nix @@ -45,6 +45,12 @@ extraGroups = [ "wheel" "networkmanager" ]; }; + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + pinentryFlavor = "gtk2"; + }; + # Home manager configuration home-manager.users.thiloho = { pkgs, ... }: { programs = { @@ -70,10 +76,9 @@ userName = "thiloho"; userEmail = "123883702+thiloho@users.noreply.github.com"; signing = { - key = "/home/thiloho/.ssh/id_ed25519.pub"; + key = "29791D54E85BEE9E"; signByDefault = true; }; - extraConfig.gpg.format = "ssh"; }; gh.enable = true; }; @@ -83,6 +88,7 @@ packages = with pkgs; [ zoom-us libreoffice + google-chrome ]; }; };