Initial nixos configuration

This commit is contained in:
Marko Korhonen 2024-09-15 21:02:35 +03:00
parent 4e4edec989
commit 74b2ebd884
247 changed files with 206 additions and 36718 deletions

24
gpg.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
{
programs = {
ssh.startAgent = false;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
services = {
pcscd.enable = true;
udev.packages = [
pkgs.yubikey-personalization
];
};
environment.shellInit = ''
gpg-connect-agent /bye
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
export MARKON_MUUTTUJA="test"
'';
}