[eid] Attempt at fixing eid on NixOS
This commit is contained in:
		
							parent
							
								
									1c8e7e9b93
								
							
						
					
					
						commit
						0b77381bb0
					
				
					 4 changed files with 55 additions and 33 deletions
				
			
		|  | @ -9,6 +9,7 @@ | ||||||
|     desktop.sway.enable = true; |     desktop.sway.enable = true; | ||||||
| 
 | 
 | ||||||
|     hardware = { |     hardware = { | ||||||
|  |       eid.enable = true; | ||||||
|       nvidia = { |       nvidia = { | ||||||
|         enable = true; |         enable = true; | ||||||
|         model = "Quadro T2000"; |         model = "Quadro T2000"; | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ | ||||||
|  |     ./eid | ||||||
|     ./nvidia |     ./nvidia | ||||||
|     ./yubikey |     ./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-unstable, ... }: | ||||||
|  | 
 | ||||||
|  | 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-unstable.ccid ]; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     environment.systemPackages = with pkgs-unstable; [ | ||||||
|  |       eid-mw | ||||||
|  |     ]; | ||||||
|  |   }; | ||||||
|  | } | ||||||
|  | @ -18,12 +18,15 @@ in { | ||||||
|           DisableFirefoxStudies = true; |           DisableFirefoxStudies = true; | ||||||
|           DisablePocket = true; |           DisablePocket = true; | ||||||
|           DisableTelemetry = true; |           DisableTelemetry = true; | ||||||
|           ExtensionSettings = {}; |  | ||||||
|           OfferToSaveLogins = false; |           OfferToSaveLogins = false; | ||||||
|         }; |         }; | ||||||
|  |         # Support smart cards | ||||||
|  |         pkcs11Modules = with pkgs-unstable; [ | ||||||
|  |           eid-mw | ||||||
|  |         ]; | ||||||
|       }; |       }; | ||||||
|       profiles.tdpeuter = { | 
 | ||||||
|         search = { |       profiles.tdpeuter.search = { | ||||||
|         default = "DuckDuckGo"; |         default = "DuckDuckGo"; | ||||||
|         force = true; |         force = true; | ||||||
|         engines = { |         engines = { | ||||||
|  | @ -58,5 +61,4 @@ in { | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|   }; |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue