began setting up git signing
This commit is contained in:
parent
9ff9b824c6
commit
fc0dcffc62
3 changed files with 32 additions and 0 deletions
|
|
@ -70,6 +70,10 @@
|
||||||
desktopManager.wallpaper.mode = "fill";
|
desktopManager.wallpaper.mode = "fill";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./programm_configs/yubikey-gpg.nix
|
||||||
|
];
|
||||||
|
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "CDaut";
|
userName = "CDaut";
|
||||||
userEmail = "git@cdaut.de";
|
userEmail = "git@cdaut.de";
|
||||||
|
signing = {
|
||||||
|
signByDefault = true;
|
||||||
|
key = null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
24
programm_configs/yubikey-gpg.nix
Normal file
24
programm_configs/yubikey-gpg.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
programs.ssh.startAgent = false;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
yubikey-personalization
|
||||||
|
];
|
||||||
|
|
||||||
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
|
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.shellInit = ''
|
||||||
|
gpg-connect-agent /bye
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue