Skip to content

Commit 16f7b03

Browse files
authored
add flake.nix currently configured on Hetzner nixOS server
1 parent ec6054e commit 16f7b03

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

nixos/flake.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
description = "A simple NixOS flake for Hetzner Cloud server with Bonfire";
3+
4+
inputs = {
5+
# NixOS official package source, using the nixos-25.05 branch here
6+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
7+
bonfire-app.url = "github:bonfire-networks/bonfire-app/main"; # Or a specific tag/commit
8+
flake-utils.url = "github:numtide/flake-utils";
9+
};
10+
11+
outputs = { self, nixpkgs, bonfire-app, flake-utils }:
12+
{
13+
nixosConfigurations.nixos-vm = nixpkgs.lib.nixosSystem {
14+
system = "x86_64-linux";
15+
modules = [
16+
./configuration.nix # Your main configuration.nix
17+
./hardware-configuration.nix # Add other modules here if you have them, e.g., hardware-configuration.nix
18+
];
19+
specialArgs = {
20+
inherit bonfire-app; # Pass bonfire-app input to configuration.nix
21+
};
22+
};
23+
};
24+
}

0 commit comments

Comments
 (0)