ma: move torrent secrets to source.nix
This commit is contained in:
parent
b2f71fa85b
commit
9b1ef080e6
|
@ -1,3 +1,4 @@
|
|||
import <stockholm/makefu/source.nix> {
|
||||
name="gum";
|
||||
torrent = true;
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ with import <stockholm/lib>;
|
|||
# <stockholm/makefu/2configs/disable_v6.nix>
|
||||
|
||||
# Testing
|
||||
# <stockholm/makefu/2configs/torrent.nix>
|
||||
# <stockholm/makefu/2configs/lanparty/lancache.nix>
|
||||
# <stockholm/makefu/2configs/lanparty/lancache-dns.nix>
|
||||
# <stockholm/makefu/2configs/deployment/dirctator.nix>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import <stockholm/makefu/source.nix> {
|
||||
name="x";
|
||||
full = true;
|
||||
# torrent = true;
|
||||
}
|
||||
|
|
|
@ -10,11 +10,6 @@ let
|
|||
daemon-port = 58846;
|
||||
dl-dir = config.makefu.dl-dir;
|
||||
in {
|
||||
# prepare secrets
|
||||
krebs.build.source.torrent-secrets.file =
|
||||
if getEnv "dummy_secrets" == "true"
|
||||
then toString <stockholm/makefu/6tests/data/secrets>
|
||||
else config.makefu.torrent-secrets ;
|
||||
|
||||
users.users = {
|
||||
download = {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
_:
|
||||
|
||||
{
|
||||
krebs.build.source.nixpkgs = {
|
||||
url = https://github.com/makefu/nixpkgs;
|
||||
rev = "15b5bbfbd1c8a55e7d9e05dd9058dc102fac04fe"; # cherry-picked collectd
|
||||
};
|
||||
}
|
10
source.nix
10
source.nix
|
@ -1,5 +1,5 @@
|
|||
with import <stockholm/lib>;
|
||||
host@{ name, secure ? false, override ? {}, full ? false }: let
|
||||
host@{ name, secure ? false, override ? {}, full ? false, torrent ? false }: let
|
||||
builder = if getEnv "dummy_secrets" == "true"
|
||||
then "buildbot"
|
||||
else "makefu";
|
||||
|
@ -29,10 +29,14 @@ in
|
|||
buildbot = toString <stockholm/makefu/6tests/data/secrets>;
|
||||
makefu = "/home/makefu/secrets/${name}";
|
||||
};
|
||||
|
||||
stockholm.file = toString <stockholm>;
|
||||
}
|
||||
(mkIf (builder == "makefu") {
|
||||
secrets-common.file = "/home/makefu/secrets/common";
|
||||
(mkIf ( torrent ) {
|
||||
torrent-secrets.file = getAttr builder {
|
||||
buildbot = toString <stockholm/makefu/6tests/data/secrets>;
|
||||
makefu = "/home/makefu/secrets/torrent" ;
|
||||
};
|
||||
})
|
||||
override
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue