From ff7178be0090f31e12c65d6158c558bf1d9d7f14 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 22 Jun 2015 19:19:32 +0200 Subject: tv git: split module into options and config --- modules/tv/git/cgit.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'modules/tv/git/cgit.nix') diff --git a/modules/tv/git/cgit.nix b/modules/tv/git/cgit.nix index fd87b9081..826ee7f27 100644 --- a/modules/tv/git/cgit.nix +++ b/modules/tv/git/cgit.nix @@ -1,23 +1,15 @@ -{ config, lib, pkgs, ... }: +{ cfg, config, lib, pkgs, ... }: let inherit (builtins) attrValues filter getAttr; inherit (lib) concatMapStringsSep mkIf optionalString; - cfg = config.services.git; - location = lib.nameValuePair; # TODO this is also in modules/wu/default.nix isPublicRepo = getAttr "public"; # TODO this is also in ./default.nix in { - imports = [ - ../../tv/nginx - ]; - - config = mkIf cfg.cgit { - users.extraUsers = lib.singleton { name = "fcgiwrap"; uid = 2851179180; # genid fcgiwrap @@ -93,5 +85,4 @@ in '') ]; }; - }; } -- cgit v1.2.3