https://github.com/mayniklas/flake-preview-update
https://github.com/mayniklas/flake-preview-update
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mayniklas/flake-preview-update
- Owner: MayNiklas
- Created: 2024-08-23T13:02:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T14:53:54.000Z (almost 2 years ago)
- Last Synced: 2025-02-09T10:09:35.769Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flake-preview-update
This tool is meant to preview the changes that would be made by running `nix flake update` on a flake.
Systems are build before and after the update and the resulting generations are compared.
The diff is then getting reduced.
## Usage
```sh
nix run 'github:MayNiklas/flake-preview-update' -- --help
usage: flake_preview_update [-h] [--flake_repo FLAKE_REPO] hosts [hosts ...]
Build a host in a flake repository.
positional arguments:
hosts Hosts to build.
options:
-h, --help show this help message and exit
--flake_repo FLAKE_REPO
Path to flake repository.
```
## Example
```sh
nix run 'github:MayNiklas/flake-preview-update' -- aida kora
nix run 'github:MayNiklas/flake-preview-update' -- --flake_repo ~/code/github.com/MayNiklas/nixos aida aida kora
```