[openconnect] Add openconnect-sso module

This commit is contained in:
Tibo De Peuter 2023-11-02 17:35:18 +01:00
parent 97a7a7a717
commit 91a01638a9
7 changed files with 37 additions and 5 deletions

View file

@ -43,12 +43,10 @@
];
sharedOverlays = [
(import ./overlays/letter)
(import ./overlays/icosystem)
(import ./overlays/cmdtime)
];
sharedOverlays = [
(import ./overlays/icosystem)
(import ./overlays/letter)
(import ./overlays/openconnect-sso)
(import ./overlays/spotify)
];

View file

@ -11,6 +11,8 @@
model = "RTX 2060";
};
networking.openconnect-sso.enable = true;
programs = {
home-manager.enable = true;
sops.enable = true;

View file

@ -11,6 +11,8 @@
model = "Quadro T2000";
};
networking.openconnect-sso.enable = true;
programs = {
home-manager.enable = true;
sops.enable = true;

View file

@ -2,6 +2,7 @@
imports = [
./desktop
./hardware
./networking
./programs
./services
./virtualisation

View file

@ -0,0 +1,5 @@
{
imports = [
./openconnect-sso
];
}

View 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
];
};
}

View file

@ -0,0 +1,4 @@
import "${builtins.fetchTarball {
url = "https://github.com/vlaci/openconnect-sso/archive/master.tar.gz";
sha256 = "08cqd40p9vld1liyl6qrsdrilzc709scyfghfzmmja3m1m7nym94";
}}/overlay.nix"