[openconnect] Add openconnect-sso module
This commit is contained in:
		
							parent
							
								
									97a7a7a717
								
							
						
					
					
						commit
						91a01638a9
					
				
					 7 changed files with 37 additions and 5 deletions
				
			
		|  | @ -2,6 +2,7 @@ | |||
|   imports = [ | ||||
|     ./desktop | ||||
|     ./hardware | ||||
|     ./networking | ||||
|     ./programs | ||||
|     ./services | ||||
|     ./virtualisation | ||||
|  |  | |||
							
								
								
									
										5
									
								
								nixos/modules/networking/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								nixos/modules/networking/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./openconnect-sso | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										20
									
								
								nixos/modules/networking/openconnect-sso/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								nixos/modules/networking/openconnect-sso/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.sisyphus.networking.openconnect-sso; | ||||
| in { | ||||
|   options.sisyphus.networking.openconnect-sso.enable = lib.mkEnableOption "OpenConnect SSO"; | ||||
| 
 | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     nixpkgs = { | ||||
|       config.permittedInsecurePackages = [ | ||||
|         "python3.10-requests-2.28.2" | ||||
|         "python3.10-cryptography-40.0.1" | ||||
|       ]; | ||||
|     }; | ||||
| 
 | ||||
|     environment.systemPackages = with pkgs; [ | ||||
|       openconnect-sso | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue