Comments (3)
great with your help i got everything working so far, even with your config.
i imported my key by hand. i didn't knew that i can use a gpg key for ssh, that is working as well now.
i should grab one of these yubikeys
from nix-config.
Hey!
Glad I could be of help somehow.
I currently use a yubikey for storing my key, but this should work with usual keys stored on disk too.
My most important gpg-related stuff are configured through home-manager. These are the minimum you have to set to get gpg working:
{
services.gpg-agent = {
enable = true;
pinentryFlavor = "gtk2";
};
programs.gpg = {
enable = true;
};
}
And that's it! Pretty simple.
My own config is a little bit more complicated, because I also:
- Get public keys declaratively. I do this to avoid having to do anything manually, as my private keys lives on my yubibkey (but I need to have the public key on the keyring to use it). This isn't really useful if you have private keys as files, as you need to copy them anyway, might as well copy the public part.
- Use my key for SSH. For this, you should also set
services.gpg-agent.enableSshSupport = true
andservices.gpg-agent.sshKeys = [ 'keygrip' ]
(you can get your keygrip usinggpg --list-secret-keys --with-keygrip
). - Forward gpg-agent through SSH
from nix-config.
Oh and I use gnome3
pinentry flavor instead of gtk2
as it looks nicer. I think you need to set (on NixOS, not home-manager) the option services.dbus.packages = [ pkgs.gcr ]
for it to work.
from nix-config.
Related Issues (20)
- have anyone used nix-generator with this config? HOT 1
- Ci/Cd? HOT 1
- SOPS and fresh installation HOT 12
- libsForQt5.qtstyleplugins messes up QT apps. HOT 1
- Do you persist `/etc/nixos`? HOT 2
- Question: How to deploy on Raspberry Pi 4 HOT 2
- Home Manager environment not activating under an impermanence setup HOT 1
- Advice for encrypt secrets that can't be encrypted with sops-nix because they are needed during runtime HOT 3
- QUESTION: How did you fix the problem of wofi on waybar with systemd integration setup? HOT 2
- Firefox add-ons issue HOT 2
- error: The option `home-manager.users.eyduh.fontProfiles' does not exist. HOT 1
- Thanks for sharing, helped me setup sops, multiuser multi nodes :) HOT 2
- Invalid Hyprland configuration generated with hyprbars
- Redundant directory creation in ephemeral-btrfs.nix
- QUESTION: how to configure new Hydra project? HOT 5
- How does Hydra know the ip of the two worker desktops?
- Installation guide HOT 1
- Question on LSP in nvim
- QUESTION about nix-shell getting error: input 'hyprland-plugins/systems' follows a non-existent input 'hyprland-plugins/hyprland/systems'
- QUESTION: impermanence and standalone home-manager
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-config.