Homelab/flake.nix
2025-10-02 03:32:00 +00:00

41 lines
1.1 KiB
Nix

{
description = "My Homelab setup for NixOS";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
inputs.thelenlucas = {
url = "github:thelenlucas/thelenlucas.github.io/main";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, thelenlucas, agenix }@inputs: {
nixosConfigurations.homelab = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
agenix.nixosModules.default
./system.nix
./configuration.nix
./hardware-configuration.nix
./networking/host.nix
./packages.nix
./users.nix
./networking/ssh.nix
./networking/adblock.nix
./networking/vpn-host.nix
./services/jellyfin.nix
./services/site.nix
{
environment.systemPackages = [ agenix.packages.x86_64-linux.default ];
age.secrets.tailscale.file = ./tailscale.age;
age.secrets.aws.file = ./secrets/aws.age;
}
];
};
};
}