[openconnect] Add openconnect-sso module

This commit is contained in:
Tibo De Peuter 2023-11-02 17:35:18 +01:00
parent 856bfa82e8
commit 5f3c611554
7 changed files with 35 additions and 0 deletions

View file

@ -46,6 +46,7 @@
(import ./overlays/cmdtime) (import ./overlays/cmdtime)
(import ./overlays/icosystem) (import ./overlays/icosystem)
(import ./overlays/letter) (import ./overlays/letter)
(import ./overlays/openconnect-sso)
(import ./overlays/spotify) (import ./overlays/spotify)
]; ];

View file

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

View file

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

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./desktop ./desktop
./hardware ./hardware
./networking
./programs ./programs
./services ./services
./virtualisation ./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"