summary refs log tree commit diff
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2021-05-31 22:57:39 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2021-05-31 23:38:31 +1000
commit72f54c32a6114a69caec30170a29837c91434aff (patch)
tree283ee94fb40f1a94e3c05620aea2f3a4373d4129
parent829b074ee04083b06712862be9e5c63c1713d278 (diff)
downloadnixpkgs-72f54c32a6114a69caec30170a29837c91434aff.tar
nixpkgs-72f54c32a6114a69caec30170a29837c91434aff.tar.gz
nixpkgs-72f54c32a6114a69caec30170a29837c91434aff.tar.bz2
nixpkgs-72f54c32a6114a69caec30170a29837c91434aff.tar.lz
nixpkgs-72f54c32a6114a69caec30170a29837c91434aff.tar.xz
nixpkgs-72f54c32a6114a69caec30170a29837c91434aff.tar.zst
nixpkgs-72f54c32a6114a69caec30170a29837c91434aff.zip
nixos/podman-network-socket-ghostunnel: move condition to include socket
-rw-r--r--nixos/modules/virtualisation/podman-network-socket-ghostunnel.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/podman-network-socket-ghostunnel.nix b/nixos/modules/virtualisation/podman-network-socket-ghostunnel.nix
index 1f1ada7f089..a0e7e433164 100644
--- a/nixos/modules/virtualisation/podman-network-socket-ghostunnel.nix
+++ b/nixos/modules/virtualisation/podman-network-socket-ghostunnel.nix
@@ -15,9 +15,9 @@ in
     };
   };
 
-  config = {
+  config = lib.mkIf (cfg.enable && cfg.server == "ghostunnel") {
 
-    services.ghostunnel = lib.mkIf (cfg.enable && cfg.server == "ghostunnel") {
+    services.ghostunnel = {
       enable = true;
       servers."podman-socket" = {
         inherit (cfg.tls) cert key cacert;