An open API service indexing awesome lists of open source software.

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

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