modularize yubikey
This commit is contained in:
		
							parent
							
								
									f577fd237d
								
							
						
					
					
						commit
						f5cfd50183
					
				
					 4 changed files with 22 additions and 3 deletions
				
			
		|  | @ -9,5 +9,6 @@ | |||
|     ./neovim.nix | ||||
|     ./baseline.nix | ||||
|     ./steam | ||||
|     ./yubikey.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										20
									
								
								home/modules/yubikey.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								home/modules/yubikey.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| with lib; let | ||||
|   cfg = config.local.apps.yubikey; | ||||
| in { | ||||
|   options.local.apps.yubikey = { | ||||
|     enable = mkEnableOption "Yubikey home settings"; | ||||
|   }; | ||||
|   config = mkIf cfg.enable { | ||||
|     home.packages = with pkgs; [ | ||||
|       yubikey-manager | ||||
|       yubico-pam | ||||
|       yubikey-personalization | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
|  | @ -34,9 +34,6 @@ | |||
|     vlc | ||||
|     vpsfree-client | ||||
|     vscodium-fhs | ||||
|     yubikey-manager | ||||
|     yubico-pam | ||||
|     yubikey-personalization | ||||
|     zola | ||||
|     zoom-us | ||||
|   ]; | ||||
|  |  | |||
|  | @ -18,6 +18,7 @@ | |||
|       terminal.enable = true; | ||||
|       neovim.enable = true; | ||||
|       steam.enable = true; | ||||
|       yubikey.enable = true; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue