format according to nixpkgs standards
This commit is contained in:
parent
9f9d513b23
commit
4bebdc4fe4
1 changed files with 30 additions and 21 deletions
23
krops.nix
23
krops.nix
|
@ -3,10 +3,12 @@ let
|
||||||
url = "https://cgit.krebsco.de/krops/";
|
url = "https://cgit.krebsco.de/krops/";
|
||||||
};
|
};
|
||||||
lib = import "${krops}/lib";
|
lib = import "${krops}/lib";
|
||||||
pkgs = import "${krops}/pkgs" {};
|
pkgs = import "${krops}/pkgs" { };
|
||||||
importJson = (import <nixpkgs> {}).lib.importJSON;
|
importJson = (import <nixpkgs> { }).lib.importJSON;
|
||||||
|
|
||||||
source = name: lib.evalSource [
|
source =
|
||||||
|
name:
|
||||||
|
lib.evalSource [
|
||||||
{
|
{
|
||||||
config.file = toString ./config/${name};
|
config.file = toString ./config/${name};
|
||||||
modules.file = toString ./modules;
|
modules.file = toString ./modules;
|
||||||
|
@ -17,7 +19,7 @@ let
|
||||||
};
|
};
|
||||||
nixpkgs.git = {
|
nixpkgs.git = {
|
||||||
ref = (importJson ./nixpkgs.json).rev;
|
ref = (importJson ./nixpkgs.json).rev;
|
||||||
url = https://github.com/NixOS/nixpkgs;
|
url = "https://github.com/NixOS/nixpkgs";
|
||||||
shallow = true;
|
shallow = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -89,13 +91,20 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
arachnide = arachnide;
|
arachnide = arachnide;
|
||||||
framboise = framboise;
|
framboise = framboise;
|
||||||
grille-pain = grille-pain;
|
grille-pain = grille-pain;
|
||||||
dromadaire = dromadaire;
|
dromadaire = dromadaire;
|
||||||
all = pkgs.writeScript "deploy-all-servers"
|
all = pkgs.writeScript "deploy-all-servers" (
|
||||||
(lib.concatStringsSep "\n" [ arachnide framboise grille-pain dromadaire ]);
|
lib.concatStringsSep "\n" [
|
||||||
|
arachnide
|
||||||
|
framboise
|
||||||
|
grille-pain
|
||||||
|
dromadaire
|
||||||
|
]
|
||||||
|
);
|
||||||
register-runner = register-runner;
|
register-runner = register-runner;
|
||||||
gen-token-arachnide = gen-token-arachnide;
|
gen-token-arachnide = gen-token-arachnide;
|
||||||
gen-token-framboise = gen-token-framboise;
|
gen-token-framboise = gen-token-framboise;
|
||||||
|
|
Loading…
Reference in a new issue