homelab/nixos/poseidon/flake.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2025-05-20 21:43:05 +00:00
{
description = "A simple NixOS flake";
inputs = {
# NixOS official package source, using the nixos-24.11 branch here
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
2025-05-22 20:24:20 +00:00
disko = {
2025-05-20 21:43:05 +00:00
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-05-22 20:24:20 +00:00
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Personal Repositories
homelabSecrets = {
url =
"git+ssh://forgejo@code.polsevev.dev/polsevev/nix-secrets-homelab.git?ref=master&shallow=1";
flake = false;
};
2025-05-20 21:43:05 +00:00
};
outputs = { self, nixpkgs, disko, ... }@inputs: {
# Please replace my-nixos with your hostname
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2025-05-22 20:24:20 +00:00
specialArgs = { inherit inputs; };
2025-05-20 21:43:05 +00:00
modules = [
# Import the previous configuration.nix we used,
# so the old configuration file still takes effect
disko.nixosModules.disko
./configuration.nix
./disko-config.nix
./hardware-configuration.nix
2025-05-22 20:24:20 +00:00
../shared/tailscale.nix
../shared/ssh.nix
../shared/sops.nix
2025-05-20 21:43:05 +00:00
];
2025-05-22 20:24:20 +00:00
2025-05-20 21:43:05 +00:00
};
};
2025-05-22 20:24:20 +00:00
}