Compare commits
	
		
			2 commits
		
	
	
		
			ea0c3544ef
			...
			2a4e5b5a96
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 2a4e5b5a96 | |||
| 8f021010c3 | 
					 4 changed files with 57 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, ... }: | ||||||
|  | 
 | ||||||
|  | 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 | ||||||
|  |     ]; | ||||||
|  |   }; | ||||||
|  | } | ||||||
|  | @ -18,42 +18,46 @@ 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 = { | ||||||
|             "Bing".metaData.hidden = true; |           "Bing".metaData.hidden = true; | ||||||
|             "eBay".metaData.hidden = true; |           "eBay".metaData.hidden = true; | ||||||
|    |           "Qwant".metaData.hidden = true; | ||||||
|             "Nix Packages" = { | 
 | ||||||
|               urls = [{ |           "Nix Packages" = { | ||||||
|                 template = "https://search.nixos.org/packages"; |             urls = [{ | ||||||
|                 params = [ |               template = "https://search.nixos.org/packages"; | ||||||
|                   { name = "type"; value = "packages"; } |               params = [ | ||||||
|                   { name = "query"; value = "{searchTerms}"; } |                 { name = "type"; value = "packages"; } | ||||||
|                 ]; |                 { name = "query"; value = "{searchTerms}"; } | ||||||
|               }]; |               ]; | ||||||
|    |             }]; | ||||||
|               icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; | 
 | ||||||
|               definedAliases = [ "@np" ]; |             icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; | ||||||
|             }; |             definedAliases = [ "@np" ]; | ||||||
|             "GitHub" = { |           }; | ||||||
|               urls = [{ |           "GitHub" = { | ||||||
|                 template = "https://github.com/search"; |             urls = [{ | ||||||
|                 params = [ |               template = "https://github.com/search"; | ||||||
|                   { name = "q"; value = "{searchTerms}"; } |               params = [ | ||||||
|                   { name = "type"; value = "repositories"; } |                 { name = "q"; value = "{searchTerms}"; } | ||||||
|                 ]; |                 { name = "type"; value = "repositories"; } | ||||||
|               }]; |               ]; | ||||||
|    |             }]; | ||||||
|               icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg"; | 
 | ||||||
|               definedAliases = [ "@gh" ]; |             icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg"; | ||||||
|             }; |             definedAliases = [ "@gh" ]; | ||||||
|           }; |           }; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue