This repository contains Charm’s Nix User Repository.
Add the flake as an input in your flake.nix file and include the desired module in your configuration:
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nur = {
url = "github:charmbracelet/nur";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nur, ... }:
{
nixosConfigurations.example = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
nur.nixosModules.crush
{ programs.crush.enable = true; }
];
};
}Add the flake as an input and include the desired module in your Home Manager configuration:
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:charmbracelet/nur";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nur, home-manager, ... }:
{
homeConfigurations.user = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
nur.homeModules.crush
{ programs.crush.enable = true; }
];
};
}-
NixOS Modules:
nixosModules.crush: Provides NixOS integration for thecrushtool.
-
Home Manager Modules:
homeModules.crush: Provides Home Manager integration for thecrushtool.
enable(boolean): Enable thecrushtool (default:false).package(package): Override the package used forcrush. Defaults to the package provided by this repository.settings(attribute set): Additional configuration settings forcrush.
programs.crush = {
enable = true;
package = pkgs.callPackage /path/to/custom/crush {};
};Part of Charm.
Charm热爱开源 • Charm loves open source
