Open tartavull opened 1 year ago
Hi, can you provide your flake.nix
if any ?
@tartavull Sooo, based on https://github.com/NixOS/nixops/blob/fc9b55c55da62f949028143b974f67fdc7f40c8b/nix/eval-machine-info.nix#L20 and some other lines in that file, as well as some rough understanding of flakes in general, I seem to believe a minimal flake.nix
for nixopsUnstable would look like below:
{
description = "NixOps config of my servers";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-22.11";
};
outputs = { self, ... }@inputs: {
nixopsConfigurations.default = {
inherit (inputs) nixpkgs;
network.description = "my servers";
network.storage.legacy = {};
#network.storage.memory = {}; # what's the difference with above?
#network.enableRollback = true; # uncomment if you like/know what this even does
### Machines ###
#my-machine-1 = { pkgs, ... }: {
# deployment.targetHost = "1.2.3.4";
# services.nginx.enable = true;
#};
};
};
}
Hello, I'm new to nixops and couldn't find how to set up a flake. Is there any documentation explaining so?