This also includes some little syntactical fixes. The commit is needed since colmena works mostly with nix' flake experiemental feature. It attempts to find a locked version of nixpkgs, which wasn't there yet. By using the standard name "flake.nix", nix automatically picks up the file and generates a `flake.lock` if it doesn't exist yet. This brings us one step closer to a buildable system.
54 lines
1,013 B
Nix
54 lines
1,013 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
};
|
|
|
|
outputs =
|
|
{ nixpkgs, ... }:
|
|
{
|
|
colmena = {
|
|
meta = {
|
|
nixpkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
overlays = [ ];
|
|
};
|
|
};
|
|
|
|
git-system =
|
|
{
|
|
name,
|
|
nodes,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
deployment = {
|
|
targetHost = "somehost.tld";
|
|
targetPort = 1234;
|
|
targetUser = "luser";
|
|
};
|
|
imports = [ ./git_system.nix ];
|
|
};
|
|
runner-system =
|
|
{
|
|
name,
|
|
nodes,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ ./runner_system.nix ];
|
|
};
|
|
dev-system =
|
|
{
|
|
name,
|
|
nodes,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ ./dev_system.nix ];
|
|
};
|
|
};
|
|
};
|
|
}
|