*/krebs -> krebs/*

This commit is contained in:
tv 2015-07-28 21:38:22 +02:00
parent 060087fab9
commit 06cb4d25ef
20 changed files with 9 additions and 13 deletions

View File

@ -7,7 +7,7 @@ let
modules = map (p: ./. + "/${p}") [ modules = map (p: ./. + "/${p}") [
"${user-name}/1systems/${system-name}.nix" "${user-name}/1systems/${system-name}.nix"
"${user-name}/3modules" "${user-name}/3modules"
"3modules/krebs" "krebs/3modules"
]; ];
}; };

View File

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
with import ../../4lib/krebs { inherit lib; }; with import ../4lib { inherit lib; };
let let
cfg = config.krebs; cfg = config.krebs;

View File

@ -6,15 +6,11 @@
# TODO when authorized_keys changes, then restart ssh # TODO when authorized_keys changes, then restart ssh
# (or kill already connected users somehow) # (or kill already connected users somehow)
with import ../../4lib/krebs { inherit lib; }; with import ../4lib { inherit lib; };
let let
cfg = config.krebs.git; cfg = config.krebs.git;
out = { out = {
# TODO don't import krebs.nginx here
imports = [
../../3modules/krebs/nginx.nix
];
options.krebs.git = api; options.krebs.git = api;
config = mkIf cfg.enable (mkMerge [ config = mkIf cfg.enable (mkMerge [
(mkIf cfg.cgit cgit-imp) (mkIf cfg.cgit cgit-imp)

View File

@ -61,9 +61,9 @@ let
${cfg.ssh-identity-file} \ ${cfg.ssh-identity-file} \
"$ssh_identity_file_target" "$ssh_identity_file_target"
ln -snf ${Zpkgs.github-known_hosts} ${cfg.dataDir}/.ssh/known_hosts ln -snf ${kpkgs.github-known_hosts} ${cfg.dataDir}/.ssh/known_hosts
''; '';
ExecStart = "${Zpkgs.github-hosts-sync}/bin/github-hosts-sync"; ExecStart = "${kpkgs.github-hosts-sync}/bin/github-hosts-sync";
}; };
}; };
@ -78,6 +78,6 @@ let
uid = 3220554646; # genid github-hosts-sync uid = 3220554646; # genid github-hosts-sync
}; };
Zpkgs = import ../../Zpkgs/krebs { inherit pkgs; }; kpkgs = import ../../krebs/5pkgs { inherit pkgs; };
in in
out out

View File

@ -1,7 +1,7 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
let let
krebs = import ../../4lib/krebs { inherit lib; }; krebs = import ../../krebs/4lib { inherit lib; };
in in
with krebs; with krebs;

View File

@ -2,10 +2,10 @@
let let
inherit (pkgs) callPackage; inherit (pkgs) callPackage;
krebs = import ../../Zpkgs/krebs { inherit pkgs; }; kpkgs = import ../../krebs/5pkgs { inherit pkgs; };
in in
krebs // { kpkgs // {
charybdis = callPackage ./charybdis {}; charybdis = callPackage ./charybdis {};
lentil = callPackage ./lentil {}; lentil = callPackage ./lentil {};
much = callPackage ./much.nix {}; much = callPackage ./much.nix {};