Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvaro17f/zix
Update your nixos system with a single command
https://github.com/alvaro17f/zix
zig
Last synced: 3 months ago
JSON representation
Update your nixos system with a single command
- Host: GitHub
- URL: https://github.com/alvaro17f/zix
- Owner: alvaro17f
- License: mit
- Created: 2024-04-06T11:10:23.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T00:13:50.000Z (3 months ago)
- Last Synced: 2024-11-13T01:19:10.248Z (3 months ago)
- Topics: zig
- Language: Zig
- Homepage: https://github.com/alvaro17f/zix
- Size: 89.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZIX
![](vhs/zix.gif)
ZIX is a command line tool for managing NixOS configuration.
> :warning: **Work in Progress**: This project is currently under development. Some features may not be complete and may change in the future.
## InstallationTo install ZIX, you can clone the repository and compile the source code:
```sh
git clone https://github.com/alvaro17f/zix.git
cd zix
zig build run
```then move the binary to a directory in your PATH:
```sh
sudo mv zig-out/bin/zix
```### NixOS
#### Run
To run ZIX, you can use the following command:```sh
nix run github:alvaro17f/zix#target.x86_64-linux-musl
```#### Flake
Add zix to your flake.nix file:```nix
{
inputs = {
zix.url = "github:alvaro17f/zix";
};
}
```then include it in your system configuration:
```nix
{ inputs, pkgs, ... }:
{
home.packages = [
inputs.zix.packages.${pkgs.system}.default
];
}
```## Usage
```sh
***************************************************
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.