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
48
hive.nix
Normal file
48
hive.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
sops-nix,
|
||||
# home-manager,
|
||||
overlays,
|
||||
...
|
||||
}: {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
specialArgs.flakeInputs = inputs;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
pkgs,
|
||||
lib,
|
||||
name,
|
||||
nodes,
|
||||
meta,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./machines/_default
|
||||
./machines/modules
|
||||
sops-nix.nixosModules.sops
|
||||
# home-manager.nixosModules.home-manager
|
||||
];
|
||||
nixpkgs = {
|
||||
inherit overlays;
|
||||
system = lib.mkDefault "x86_64-linux";
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
deployment.tags = [config.nixpkgs.system name];
|
||||
};
|
||||
|
||||
sandbox = {name, ...}: {
|
||||
imports = [./machines/${name}/definition.nix];
|
||||
deployment.tags = ["sandbox"];
|
||||
};
|
||||
|
||||
monitor = {name, ...}: {
|
||||
imports = [./machines/${name}/definition.nix];
|
||||
deployment.tags = ["grafana" "prometheus"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue