https://github.com/ryanccn/morlana
nix-darwin utilities
https://github.com/ryanccn/morlana
clap clap-cli nix nix-darwin nix-flakes rust rust-cli
Last synced: 8 months ago
JSON representation
nix-darwin utilities
- Host: GitHub
- URL: https://github.com/ryanccn/morlana
- Owner: ryanccn
- License: gpl-3.0
- Created: 2024-09-08T05:00:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-18T00:26:44.000Z (9 months ago)
- Last Synced: 2025-05-18T01:26:53.231Z (9 months ago)
- Topics: clap, clap-cli, nix, nix-darwin, nix-flakes, rust, rust-cli
- Language: Rust
- Homepage:
- Size: 93.8 KB
- Stars: 24
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# morlana
[nix-darwin](https://github.com/LnL7/nix-darwin) utilities, implemented in Rust
```sh
nix run --accept-flake-config github:ryanccn/morlana
```
## Features
- Support for better build logs with [nix-output-monitor](https://github.com/maralorn/nix-output-monitor)
- Support for diffing with [nvd](https://gitlab.com/khumba/nvd) before switching configurations
- Confirmation prompts for important actions
- Flakes-first (_does not work with channels setups at the moment_)
- Improved uninstaller logic
- Addresses https://github.com/NixOS/nix/issues/3261
- Restores `.before-nix-darwin` files automagically
- Works as a standalone binary
- More aesthetic logging
## Getting started
morlana is capable of initializing a nix-darwin system using flakes by itself. In order to get started, run
```sh
nix run github:ryanccn/morlana -- init
```
Alternatively, if you have an existing nix-darwin configuration you want to switch to:
```sh
nix run github:ryanccn/morlana -- switch --flake ""
```
To remove nix-darwin from your system:
```sh
nix run github:ryanccn/morlana -- uninstall
```
For more detailed information on available commands and options, run `morlana --help`.
### Binary cache
```nix
{
extra-substituters = [ "https://ryanccn.cachix.org" ];
extra-trusted-public-keys = [ "ryanccn.cachix.org-1:Or82F8DeVLJgjSKCaZmBzbSOhnHj82Of0bGeRniUgLQ=" ];
}
```
## License
GPLv3