mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
chore: syntax
This commit is contained in:
32
deploy.nix
32
deploy.nix
@@ -10,7 +10,7 @@ let
|
|||||||
pkgs = import "${krops}/pkgs" { };
|
pkgs = import "${krops}/pkgs" { };
|
||||||
importJson = (import <nixpkgs> { }).lib.importJSON;
|
importJson = (import <nixpkgs> { }).lib.importJSON;
|
||||||
|
|
||||||
regularSystem = path: name: {
|
regularSystem = { path, name, address }: {
|
||||||
source = lib.evalSource [{
|
source = lib.evalSource [{
|
||||||
niveum.file = toString ./.;
|
niveum.file = toString ./.;
|
||||||
system.file = toString path;
|
system.file = toString path;
|
||||||
@@ -30,16 +30,28 @@ let
|
|||||||
name = "shared";
|
name = "shared";
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
target = "root@${name}:22022";
|
target = "root@${address}:22022";
|
||||||
};
|
};
|
||||||
inherit (pkgs.krops) writeDeploy;
|
inherit (pkgs.krops) writeDeploy;
|
||||||
in {
|
in {
|
||||||
scardanelli = writeDeploy "deploy-scardanelli"
|
scardanelli = writeDeploy "deploy-scardanelli" (regularSystem {
|
||||||
(regularSystem systems/scardanelli "scardanelli");
|
path = systems/scardanelli;
|
||||||
homeros =
|
name = "scardanelli";
|
||||||
writeDeploy "deploy-homeros" (regularSystem systems/homeros "homeros");
|
address = "scardanelli.r";
|
||||||
wilde = writeDeploy "deploy-wilde" (regularSystem systems/wilde "wilde");
|
});
|
||||||
|
homeros = writeDeploy "deploy-homeros" (regularSystem {
|
||||||
catullus =
|
path = systems/homeros;
|
||||||
writeDeploy "deploy-catullus" (regularSystem systems/catullus "catullus");
|
name = "homeros";
|
||||||
|
address = "homeros.r";
|
||||||
|
});
|
||||||
|
wilde = writeDeploy "deploy-wilde" (regularSystem {
|
||||||
|
path = systems/wilde;
|
||||||
|
name = "wilde";
|
||||||
|
address = "wilde.r";
|
||||||
|
});
|
||||||
|
toum = writeDeploy "deploy-toum" (regularSystem {
|
||||||
|
path = systems/toum;
|
||||||
|
name = "toum";
|
||||||
|
address = "192.168.178.24";
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user