]>
Commit | Line | Data |
---|---|---|
4d4f13f4 IB |
1 | { lib, pkgs, config, mylibs, ... }: |
2 | let | |
3 | cfg = config.services.myGitweb; | |
4 | in { | |
5 | options.services.myGitweb = { | |
6 | enable = lib.mkEnableOption "my gitweb service"; | |
7 | }; | |
8 | ||
9 | config = lib.mkIf cfg.enable { | |
10 | security.acme.certs."eldiron".extraDomains."git.immae.eu" = null; | |
11 | ||
12 | nixpkgs.config.packageOverrides = oldpkgs: rec { | |
13 | gitweb = oldpkgs.gitweb.overrideAttrs(old: { | |
14 | installPhase = old.installPhase + '' | |
15 | cp -r ${./gitweb/theme} $out/gitweb-theme; | |
16 | ''; | |
17 | }); | |
18 | }; | |
19 | ||
20 | }; | |
21 | } |