mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-24 22:29:33 +01:00
nitrokey ssh still works
This commit is contained in:
parent
4af23fb732
commit
8d59d29881
@ -65,6 +65,9 @@
|
||||
# ssh nas
|
||||
#=> Works!
|
||||
|
||||
# TODO: What is the difference between programs.gnupg.agent.enableSSHSupport and
|
||||
# services.gpg-agent.enableSshSupport = true;
|
||||
|
||||
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
|
||||
programs = {
|
||||
ssh.startAgent = false;
|
||||
@ -89,6 +92,7 @@
|
||||
services.pcscd.enable = true;
|
||||
|
||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||
# SSH configuration.
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts ${../assets/ssh/known_hosts}";
|
||||
@ -104,5 +108,31 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# GnuPG configuration.
|
||||
# Examples:
|
||||
# https://github.com/ioerror/duraconf
|
||||
# https://gist.github.com/graffen/37eaa2332ee7e584bfda
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Display long key IDs
|
||||
keyid-format = "0xlong";
|
||||
|
||||
# List all keys (or the specified ones) along with their fingerprints
|
||||
with-fingerprint = true;
|
||||
|
||||
# Display the calculated validity of user IDs during key listings.
|
||||
list-options = "show-uid-validity";
|
||||
verify-options = "show-uid-validity";
|
||||
};
|
||||
publicKeys = [
|
||||
{
|
||||
source = "${../assets/gpg/pubkey_nitrokey.asc}";
|
||||
# ultimate
|
||||
trust = 5;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user