Installation¶
Choose one of the following methods to install incus-apply.
Install binary¶
Download and install the latest release binary for your system:
curl -LO https://github.com/abiosoft/incus-apply/releases/latest/download/incus-apply-$(uname)-$(uname -m)
sudo install incus-apply-$(uname)-$(uname -m) /usr/local/bin/incus-apply
Build from source¶
Clone the repository and build:
git clone https://github.com/abiosoft/incus-apply
cd incus-apply
make
sudo make install
Nix / NixOS¶
Try it directly¶
Flake-enabled systems can try incus-apply directly with:
nix run github:abiosoft/incus-apply
To pass arguments, separate them with --:
nix run github:abiosoft/incus-apply -- debian.yaml
Install it¶
To install it on NixOS, use the NixOS module. First add incus-apply to your flake inputs:
inputs.incus-apply.url = "github:abiosoft/incus-apply";
inputs.incus-apply.inputs.nixpkgs.follows = "nixpkgs";
Then import the module in your nixosConfigurations and enable it:
{
outputs = { self, nixpkgs, incus-apply, ... }: {
nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
incus-apply.nixosModules.default
{ programs.incus-apply.enable = true; }
];
};
};
}
This installs the incus-apply binary system-wide.