add nix flake with home manager module
Adds a Nix flake that builds rmcl from source via rustPlatform.buildRustPackage and a Home Manager module for configuring programs.rmcl. The HM module generates config.toml and theme.toml from Nix options. The package option defaults to the flake's own build so users don't need rmcl in their nixpkgs. Also adds Nix install instructions and a HM usage example to the README, and updates .gitignore for Nix build artifacts.
This commit is contained in:
1 parent
7723716e18
commit
a8c244097a
4 files changed
+327
No files matched your search
@@ -84,6 +84,30 @@ paru -S rmcl-bin
|
||||
paru -S rmcl-git
|
||||
```
|
||||
|
||||
### Nix
|
||||
|
||||
```sh
|
||||
nix run github:objz/rmcl
|
||||
nix profile install github:objz/rmcl
|
||||
```
|
||||
|
||||
a home manager module is also available. add the flake as an input and enable it:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
rmcl.url = "github:objz/rmcl";
|
||||
};
|
||||
|
||||
outputs = { rmcl, ... }: {
|
||||
homeManagerModules.default = rmcl.homeManagerModules.default;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
see `flake.nix` for available options (`programs.rmcl.*`).
|
||||
|
||||
### Cargo
|
||||
|
||||
```sh
|
||||
@@ -102,6 +126,7 @@ package managers:
|
||||
[](https://github.com/objz/homebrew-tap)
|
||||
[](https://winstall.app/apps/Objz.Rmcl)
|
||||
[](https://community.chocolatey.org/packages/rmcl)
|
||||
[](https://github.com/objz/rmcl)
|
||||
|
||||
aur:
|
||||
|
||||
|
||||
Reference in new issue
Block a user