[eid] Add module
This commit is contained in:
		
							parent
							
								
									8f021010c3
								
							
						
					
					
						commit
						2a4e5b5a96
					
				
					 4 changed files with 25 additions and 0 deletions
				
			
		|  | @ -9,6 +9,7 @@ | |||
|     desktop.sway.enable = true; | ||||
| 
 | ||||
|     hardware = { | ||||
|       eid.enable = true; | ||||
|       nvidia = { | ||||
|         enable = true; | ||||
|         model = "Quadro T2000"; | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./eid | ||||
|     ./nvidia | ||||
|     ./yubikey | ||||
|   ]; | ||||
|  |  | |||
							
								
								
									
										18
									
								
								nixos/modules/hardware/eid/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								nixos/modules/hardware/eid/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.sisyphus.hardware.eid; | ||||
| in { | ||||
|   options.sisyphus.hardware.eid.enable = lib.mkEnableOption "Electronic identity card (eID)"; | ||||
| 
 | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     services.pcscd = { | ||||
|       enable = true; | ||||
|       plugins = [ pkgs.ccid ]; | ||||
|     }; | ||||
| 
 | ||||
|     environment.systemPackages = with pkgs; [ | ||||
|       eid-mw | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
|  | @ -20,6 +20,11 @@ in { | |||
|           DisableTelemetry = true; | ||||
|           OfferToSaveLogins = false; | ||||
|         }; | ||||
| 
 | ||||
|         # Support smart cards | ||||
|         pkcs11Modules = with pkgs-unstable; [ | ||||
|           eid-mw | ||||
|         ]; | ||||
|       }; | ||||
| 
 | ||||
|       profiles.tdpeuter.search= { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue