feat: add homelab

This commit is contained in:
2025-04-08 04:13:57 +00:00
parent 6c2520a8be
commit 30f1d529d3
5 changed files with 207 additions and 0 deletions

33
nix/homelab/flake.nix Normal file
View File

@@ -0,0 +1,33 @@
{
description = "Homelab-test";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
self,
nixpkgs,
disko,
}:
{
nixosConfigurations = {
main = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
meta = {
hostname = "kube";
};
};
modules = [
disko.nixosModules.disko
./configuration.nix
./hardware-configuration.nix
];
};
};
};
}