fix gnupg invalid time pinentry
This commit is contained in:
		
							parent
							
								
									72c40d5291
								
							
						
					
					
						commit
						e7bcf06d19
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -4,14 +4,19 @@
 | 
			
		|||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    # Enables files to be encrypted to age identities stored on YubiKeys
 | 
			
		||||
    age-plugin-yubikey
 | 
			
		||||
    # Cryptfile
 | 
			
		||||
    # Setup dm-crypt managed device-mapper mappings.
 | 
			
		||||
    cryptsetup
 | 
			
		||||
    # Yubikey can be used as a smart card for secure encryption
 | 
			
		||||
    gnupg
 | 
			
		||||
    # Configure your YubiKey via the command line
 | 
			
		||||
    yubikey-manager
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Manage secret (private) keys.
 | 
			
		||||
  programs.gnupg.agent = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    # Fix: invalid time when using keytocard
 | 
			
		||||
    pinentryFlavor = "gtk2";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Use our yubikey as a user login or for sudo access 
 | 
			
		||||
  security.pam.services = {
 | 
			
		||||
    login.u2fAuth = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue