summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2015-03-18 14:09:24 +0000
committerLuca Bruno <lucabru@src.gnome.org>2015-03-18 14:09:24 +0000
commitcb45b7ec3e94fc5e19c319e43bf28319714a50f1 (patch)
tree9c971dde96b24faea30e9365facdd7ac4cb7d0c7 /lib
parent7ef59c4fe2a87682054572a504fc7c6046c282e5 (diff)
downloadnixpkgs-cb45b7ec3e94fc5e19c319e43bf28319714a50f1.tar
nixpkgs-cb45b7ec3e94fc5e19c319e43bf28319714a50f1.tar.gz
nixpkgs-cb45b7ec3e94fc5e19c319e43bf28319714a50f1.tar.bz2
nixpkgs-cb45b7ec3e94fc5e19c319e43bf28319714a50f1.tar.lz
nixpkgs-cb45b7ec3e94fc5e19c319e43bf28319714a50f1.tar.xz
nixpkgs-cb45b7ec3e94fc5e19c319e43bf28319714a50f1.tar.zst
nixpkgs-cb45b7ec3e94fc5e19c319e43bf28319714a50f1.zip
Revert "nixos: Multiple service instances, apply to nginx. See #6784"
This reverts commit 7ef59c4fe2a87682054572a504fc7c6046c282e5.

Wrong push! Sorry!
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/types.nix b/lib/types.nix
index ba0f9a5b890..1e7abf36535 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -227,19 +227,4 @@ rec {
 
   };
 
-  mkMultiInstance = path: args: f:
-    let
-      def = f (args // { name = "default"; config = getAttrFromPath path args.config; });
-    in {
-      options = setAttrByPath path (def.options // {
-        instances = mkOption {
-          type = types.attrsOf (types.submodule f);
-          default = {};
-          description = "Additional instances of this service";
-        };
-      });
-
-      config = def.config;
-    };
-
 }