Skip to content

Commit

Permalink
home/git: use SSH for signing
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Aug 22, 2023
1 parent 0ef9342 commit 81201db
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
20 changes: 10 additions & 10 deletions home/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
profiles.mihai = {};
};

gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
};
# gpg = {
# enable = true;
# homedir = "${config.xdg.dataHome}/gnupg";
# };

password-store = {
enable = true;
Expand All @@ -46,12 +46,12 @@
};

services = {
gpg-agent = {
enable = true;
enableSshSupport = true;
pinentryFlavor = "gnome3";
sshKeys = ["73D1C4271E8C508E1E55259660C94BE828B07738"];
};
# gpg-agent = {
# enable = true;
# enableSshSupport = true;
# pinentryFlavor = "gnome3";
# sshKeys = ["73D1C4271E8C508E1E55259660C94BE828B07738"];
# };

syncthing.enable = true;
};
Expand Down
5 changes: 4 additions & 1 deletion home/programs/git.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
config,
pkgs,
default,
...
Expand Down Expand Up @@ -42,10 +43,12 @@
ignores = ["*~" "*.swp" "*result*" ".direnv" "node_modules"];

signing = {
key = "5899325F2F120900";
key = "${config.home.homeDirectory}/.ssh/id_ed25519";
signByDefault = true;
};

extraConfig.gpg.format = "ssh";

userEmail = "fufexan@protonmail.com";
userName = "Mihai Fufezan";
};
Expand Down
6 changes: 6 additions & 0 deletions modules/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
# allow the Tailscale UDP port through the firewall
config.services.tailscale.port
5353
# syncthing QUIC
22000
# syncthing discovery broadcast on ipv4 and multicast ipv6
21027
];

allowedTCPPorts = [
42355
# syncthing
22000
];
};

Expand Down

0 comments on commit 81201db

Please sign in to comment.