nix: add vps setup

This commit is contained in:
Oleksandr Smirnov 2026-01-14 21:45:55 +02:00
parent 028a52d9ff
commit 50015669e1
No known key found for this signature in database
10 changed files with 433 additions and 0 deletions

33
nix/flake.nix Normal file
View file

@ -0,0 +1,33 @@
{
description = "my nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
agenix,
disko,
...
}@inputs:
{
nixosConfigurations."thought" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/thought
agenix.nixosModules.default
disko.nixosModules.disko
];
};
};
}