3: {tv -> krebs}.git

This commit is contained in:
tv 2015-07-24 11:44:49 +02:00
parent 734ec4ae00
commit 5f63c4071c
2 changed files with 5 additions and 5 deletions
2configs/tv
3modules/krebs

View file

@ -3,8 +3,8 @@ with import ../../4lib/tv { inherit lib pkgs; };
let
out = {
imports = [ ../../3modules/tv/git.nix ];
tv.git = {
imports = [ ../../3modules/krebs/git.nix ];
krebs.git = {
enable = true;
root-title = "public repositories at ${config.tv.identity.self.name}";
root-desc = "keep calm and engage";

View file

@ -9,14 +9,14 @@
with builtins;
with lib;
let
cfg = config.tv.git;
cfg = config.krebs.git;
out = {
# TODO don't import krebs.nginx here
imports = [
../../3modules/krebs/nginx.nix
];
options.tv.git = api;
options.krebs.git = api;
config = mkIf cfg.enable (mkMerge [
(mkIf cfg.cgit cgit-imp)
git-imp
@ -24,7 +24,7 @@ let
};
api = {
enable = mkEnableOption "tv.git";
enable = mkEnableOption "krebs.git";
cgit = mkOption {
type = types.bool;