about summary refs log tree commit diff
path: root/modules/common/openconnect.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-02-19 21:35:36 +0300
committerAzat Bahawi <azat@bahawi.net>2023-02-19 21:35:36 +0300
commit9e3f4268c87b0d1a64e9429ea173252a5f774ec5 (patch)
tree12896bfa12d7175a22c1e8091cfcc785112df12b /modules/common/openconnect.nix
parent2023-02-19 (diff)
2023-02-19
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