nixos-server-conf/flake.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
2025-05-05 16:04:08 +00:00
sops-nix.url = "github:Mic92/sops-nix";
2025-05-16 06:34:32 +00:00
disko.url = "github:nix-community/disko";
facter.url = "github:nix-community/nixos-facter-modules";
};
2025-05-15 15:26:11 +00:00
outputs = inputs: {
nixosConfigurations.raid1base = import ./setup { inherit inputs; };
colmena = {
meta = {
nixpkgs = import inputs.nixpkgs {
system = "x86_64-linux";
overlays = [ ];
};
2025-05-15 15:26:11 +00:00
};
2025-05-15 15:26:11 +00:00
git-system =
{
name,
nodes,
pkgs,
...
}:
{
deployment = {
targetHost = "somehost.tld";
targetPort = 1234;
targetUser = "luser";
};
2025-05-15 15:26:11 +00:00
imports = [ ./git_system.nix ];
};
runner-system =
{
name,
nodes,
pkgs,
...
}:
{
imports = [ ./runner_system.nix ];
};
dev-system =
{
name,
nodes,
pkgs,
...
}:
{
imports = [
./dev_system.nix
inputs.sops-nix.nixosModules.sops
];
};
};
2025-05-15 15:26:11 +00:00
};
}