2024-02-18 16:31:46 +01:00
|
|
|
{ config, inputs, lib, pkgs, ... }:
|
2023-11-02 17:35:18 +01:00
|
|
|
|
|
|
|
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; [
|
2024-02-18 16:31:46 +01:00
|
|
|
inputs.openconnect-sso.packages.${config.nixpkgs.localSystem.system}.default
|
2023-11-02 17:35:18 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|