Skip to content

alvaro17f/zix

Repository files navigation

ZIX

ZIX is a command line tool for managing NixOS configuration.

⚠️ Work in Progress: This project is currently under development. Some features may not be complete and may change in the future.

Installation

To install ZIX, you can clone the repository and compile the source code:

git clone https://github.com/alvaro17f/zix.git
cd zix
zig build run

then move the binary to a directory in your PATH:

sudo mv zig-out/bin/zix <PATH>

NixOS

Run

To run ZIX, you can use the following command:

nix run github:alvaro17f/zix#target.x86_64-linux-musl

Flake

Add zix to your flake.nix file:

{
    inputs = {
        zix.url = "github:alvaro17f/zix";
    };
}

then include it in your system configuration:

{ inputs, pkgs, ... }:
{
    home.packages = [
        inputs.zix.packages.${pkgs.system}.default
    ];
}

Usage

 ***************************************************
 ZIX - A simple CLI tool to update your nixos system
 ***************************************************
 -r : set repo path (default is $HOME/.dotfiles)
 -n : set hostname (default is OS hostname)
 -k : set generations to keep (default is 10)
 -u : set update to true (default is false)
 -d : set diff to true (default is false)
 -h, help : Display this help message
 -v, version : Display the current version

License

ZIX is distributed under the MIT license. See the LICENSE file for more information.