about summary refs log tree commit diff
path: root/modules/common/openconnect.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/common/openconnect.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/common/openconnect.nix b/modules/common/openconnect.nix
index 780f93f..936c9d1 100644
--- a/modules/common/openconnect.nix
+++ b/modules/common/openconnect.nix
@@ -10,7 +10,7 @@ in {
   options.nixfiles.modules.openconnect.enable =
     mkEnableOption "OpenConnect VPN";
 
-  config = mkIf.enable {
+  config = mkIf cfg.enable {
     assertions = [
       {
         assertion = config.networking.networkmanager.enable;
@@ -35,7 +35,7 @@ in {
     networking.networkmanager.plugins = with pkgs; [
       ((networkmanager-openconnect.override {
           withGnome = false;
-          openconnect = openconnect.overrideAttrs (_: super: {
+          openconnect = openconnect.overrideAttrs (_: _: {
             version = "unstable-2022-10-23";
             src = fetchFromGitLab {
               owner = "openconnect";

Consider giving Nix/NixOS a try! <3