colmena initial implementation for sandbox and monitor
All checks were successful
Hello World / test (push) Successful in 4s
All checks were successful
Hello World / test (push) Successful in 4s
This commit is contained in:
parent
a90630ecb6
commit
5feb74d56d
40 changed files with 27629 additions and 141 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs";
|
||||
colmena.url = "github:zhaofengli/colmena";
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -14,7 +15,11 @@
|
|||
# };
|
||||
};
|
||||
|
||||
outputs = inputs @ {...}: let
|
||||
outputs = inputs @ {
|
||||
nixpkgs,
|
||||
colmena,
|
||||
...
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
|
||||
liveVMs = {
|
||||
|
|
@ -102,5 +107,32 @@
|
|||
};
|
||||
in {
|
||||
nixosConfigurations = liveVMs;
|
||||
|
||||
colmenaHive = colmena.lib.makeHive {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
overlays = [];
|
||||
};
|
||||
|
||||
defaults = {pkgs, ...}: {
|
||||
};
|
||||
};
|
||||
|
||||
host-b = {
|
||||
name,
|
||||
nodes,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
deployment = {
|
||||
targetHost = "somehost.tld";
|
||||
targetPort = 1234;
|
||||
targetUser = "luser";
|
||||
};
|
||||
boot.isContainer = true;
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue