add reclamation server
Some checks failed
/ perform flake analysis (push) Successful in 52s
/ build hive configuration (push) Failing after 1m52s

This commit is contained in:
2026-01-02 15:02:35 +01:00
parent d068ea8c2d
commit 29b632a961
3 changed files with 183 additions and 63 deletions

145
flake.nix
View File

@@ -17,33 +17,36 @@
# sin inputs
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
testing-grounds.url = "gitlab:shobu13/testing-grounds";
reclamation.url = "git+https://git.shobu.fr/sin_serhao/reclamation";
shoblog-front.url = "gitlab:shobu13/shoblog";
# striped-front.url = "git+ssh://git@gitlab.com/striped1/striped-front";
# striped-back.url = "git+ssh://git@gitlab.com/striped1/striped-back";
copyparty.url = "github:9001/copyparty";
};
# Flake outputs
outputs = inputs@{
self,
nixpkgs,
unstable,
colmena,
outputs =
inputs@{
self,
agenix,
nixpkgs,
unstable,
colmena,
disko,
shoblog-front,
# striped-front,
# striped-back,
nix-minecraft,
testing-grounds,
copyparty,
...
agenix,
disko,
shoblog-front,
# striped-front,
# striped-back,
nix-minecraft,
testing-grounds,
reclamation,
copyparty,
...
}:
let
# The systems supported for this flake
@@ -52,16 +55,21 @@
];
# Helper to provide system-specific attributes
forEachSupportedSystem = f: inputs.nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import inputs.nixpkgs { inherit system; };
});
forEachSupportedSystem =
f:
inputs.nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import inputs.nixpkgs { inherit system; };
}
);
in
{
colmenaHive = colmena.lib.makeHive {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [];
overlays = [ ];
};
specialArgs = {
@@ -69,49 +77,70 @@
};
};
thea = {name, nodes, pkgs, ...}: {
imports = [
./hosts/${name}/configuration.nix
./hosts/${name}/hardware-configuration.nix
] ++ [
# modules
./modules/gitea/${name}
];
thea =
{
name,
nodes,
pkgs,
...
}:
{
imports = [
./hosts/${name}/configuration.nix
./hosts/${name}/hardware-configuration.nix
]
++ [
# modules
./modules/gitea/${name}
];
deployment.targetHost = "192.168.1.12";
};
deployment.targetHost = "192.168.1.12";
};
sin = {name, nodes, pkgs, ...}: {
imports = [
disko.nixosModules.disko
agenix.nixosModules.default
./hosts/${name}/configuration.nix
./hosts/${name}/hardware-configuration.nix
] ++ [
# modules
./modules/gitea/${name}
];
sin =
{
name,
nodes,
pkgs,
...
}:
{
imports = [
disko.nixosModules.disko
agenix.nixosModules.default
./hosts/${name}/configuration.nix
./hosts/${name}/hardware-configuration.nix
]
++ [
# modules
./modules/gitea/${name}
];
deployment.targetHost = "192.168.1.14";
};
deployment.targetHost = "192.168.1.14";
};
};
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
# The Nix packages provided in the environment
# Add any you need here
packages = with pkgs; [ colmena.packages.${pkgs.system}.colmena ];
devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell {
# The Nix packages provided in the environment
# Add any you need here
packages = with pkgs; [ colmena.packages.${pkgs.system}.colmena ];
# Set any environment variables for your dev shell
env = { };
# Set any environment variables for your dev shell
env = { };
# Add any shell logic you want executed any time the environment is activated
shellHook = ''
'';
};
});
# Add any shell logic you want executed any time the environment is activated
shellHook = '''';
};
}
);
packages = forEachSupportedSystem ({pkgs}: {
inherit (colmena.packages."${pkgs.system}") colmena;
});
packages = forEachSupportedSystem (
{ pkgs }:
{
inherit (colmena.packages."${pkgs.system}") colmena;
}
);
};
}