78 lines
1.6 KiB
Nix
78 lines
1.6 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }: {
|
|
hosts = {
|
|
nitter = {
|
|
site = "vs";
|
|
};
|
|
nixos-coturn = {
|
|
site = "vs";
|
|
};
|
|
tor-relay = {
|
|
site = "vs";
|
|
};
|
|
jackett = {
|
|
site = "vs";
|
|
};
|
|
hydra = {
|
|
site = "vs";
|
|
};
|
|
web-public-2 = {
|
|
site = "vs";
|
|
};
|
|
};
|
|
|
|
generateColmenaHost = name: host : {
|
|
deployment = {
|
|
targetHost = "${name}.${host.site}.grzb.de";
|
|
targetUser = "colmena-deploy";
|
|
};
|
|
|
|
imports = [
|
|
./configuration/common
|
|
./configuration/proxmox-vm
|
|
./hosts/${name}
|
|
];
|
|
};
|
|
|
|
colmena = {
|
|
meta = {
|
|
nixpkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
};
|
|
};
|
|
} // builtins.mapAttrs (self.generateColmenaHost) self.hosts;
|
|
|
|
/* generateNixosSystem = {
|
|
name,
|
|
system ? "x86_64-linux",
|
|
group ? null,
|
|
modules ? [],
|
|
}:
|
|
let localNixpkgs = nixpkgs.lib.attrByPath [ "nixpkgs-${name}" ] nixpkgs inputs;
|
|
in localNixpkgs.lib.nixosSystem {
|
|
modules = modules ++ [
|
|
./configuration/common
|
|
./users/yuri
|
|
./users/colmena-deploy
|
|
(./hosts + "/${name}")
|
|
];
|
|
}; */
|
|
|
|
hydraJobs = {
|
|
nixConfigurations.nitter = let system = "x86_64-linux";
|
|
in nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
./configuration/common
|
|
./configuration/proxmox-vm
|
|
./hosts/nitter
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|