Merge remote-tracking branch 'cd/master'

This commit is contained in:
lassulus 2016-10-24 09:46:28 +02:00
commit b43f47f0b3
4 changed files with 23 additions and 4 deletions

View File

@ -389,6 +389,12 @@ let
mapAttrsToList repo-to-cgitrc cfg.repos
));
environment.systemPackages = [
(pkgs.writeDashBin "cgit-clear-cache" ''
${pkgs.coreutils}/bin/rm -f ${cfg.cgit.settings.cache-root}/*
'')
];
system.activationScripts.cgit = ''
mkdir -m 0700 -p ${cfg.cgit.settings.cache-root}
chown ${toString cfg.cgit.fcgiwrap.user.uid}:${toString cfg.cgit.fcgiwrap.group.gid} ${cfg.cgit.settings.cache-root}

View File

@ -13,12 +13,12 @@ in
stdenv.mkDerivation rec {
name = "populate";
version = "1.1.1";
version = "1.2.0";
src = fetchgit {
url = http://cgit.cd.krebsco.de/populate;
rev = "refs/tags/v${version}";
sha256 = "139f4lzn56lca3qgqy9g33r94m3xi1mqns9340lkb4qm6626yvqd";
sha256 = "0q3110hkkxn9bc3a63xbx1hyd1fpzz4wrck4lng3j5a9i1y1jm07";
};
phases = [

View File

@ -14,7 +14,7 @@ with import <stockholm/lib>;
stockholm.file = "/home/tv/stockholm";
nixpkgs.git = {
url = https://github.com/NixOS/nixpkgs;
ref = "cd41bfeeb1aaa10e4d412f2bd90dc2844a7c5df8";
ref = "e4fb65a3627f8c17a2f92c08bf302dc30f0a8db9";
};
} // optionalAttrs host.secure {
secrets-master.file = "/home/tv/secrets/master";
@ -112,6 +112,14 @@ with import <stockholm/lib>;
};
}
(let ca-bundle = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; in {
environment.variables = {
CURL_CA_BUNDLE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
};
})
{
services.cron.enable = false;
services.nscd.enable = false;

View File

@ -34,9 +34,14 @@ let
load-env = {};
make-snapshot = {};
much = {};
netcup = {
cgit.desc = "netcup command line interface";
};
newsbot-js = {};
nixpkgs = {};
populate.desc = "source code installer";
populate = {
cgit.desc = "source code installer";
};
push = {};
regfish = {};
soundcloud = {