diff options
author | tv <tv@krebsco.de> | 2015-07-11 19:44:12 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-07-11 19:44:12 +0200 |
commit | 153422f74b1ed5cae37c9424514a9e9d1f79acb4 (patch) | |
tree | 94cd29e6a98f1ce6228104055d0550e318242290 /old/modules/tv/git/default.nix | |
parent | e21f45386d7aeb3dd3e9d828e1702115f4ef2bce (diff) |
move old stuff
Diffstat (limited to 'old/modules/tv/git/default.nix')
-rw-r--r-- | old/modules/tv/git/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/old/modules/tv/git/default.nix b/old/modules/tv/git/default.nix new file mode 100644 index 0000000..17bc373 --- /dev/null +++ b/old/modules/tv/git/default.nix @@ -0,0 +1,27 @@ +arg@{ config, pkgs, lib, ... }: + +let + inherit (lib) mkIf mkMerge; + + cfg = config.tv.git; + arg' = arg // { inherit cfg; }; +in + +# TODO unify logging of shell scripts to user and journal +# TODO move all scripts to ${etcDir}, so ControlMaster connections +# immediately pick up new authenticators +# TODO when authorized_keys changes, then restart ssh +# (or kill already connected users somehow) + +{ + imports = [ + ../../tv/nginx + ]; + + options.tv.git = import ./options.nix arg'; + + config = mkIf cfg.enable (mkMerge [ + (import ./config.nix arg') + (mkIf cfg.cgit (import ./cgit.nix arg')) + ]); +} |