refactor(nix): replace headings

This commit is contained in:
Eggflaw 2024-06-30 19:45:32 +09:00
parent 94885e53e6
commit 95f35de8ff

View file

@ -97,31 +97,32 @@ yay -S [PACKAGE_NAME]
macOS* and Linux users can use [Nix](https://nixos.org/) to install Lune. macOS* and Linux users can use [Nix](https://nixos.org/) to install Lune.
<Callout type="warning" emoji="⚠️"> <Callout type="warning" emoji="⚠️">
macOS is currently broken. Help is wanted. *the macOS build is currently broken. Help is wanted debugging [it](https://github.com/NixOS/nixpkgs/blob/36f9963ac7ea0a471c1d408e90edec093a819d83/pkgs/development/interpreters/lune/default.nix).
</Callout> </Callout>
#### Imperatively <details>
<summary>Imperatively</summary>
##### On NixOS <br />
**NixOS**
```sh copy filename="Bash" ```sh copy filename="Bash"
nix-env -iA nixos.lune nix-env -iA nixos.lune
``` ```
##### On Non NixOS without flakes **Non NixOS**
```sh copy filename="Bash" ```sh copy filename="Bash"
nix-env -iA nixpkgs.lune nix-env -iA nixpkgs.lune
``` # If you are using flakes
##### On Non NixOS with flakes
```sh copy filename="Bash"
nix profile install nixpkgs#lune nix profile install nixpkgs#lune
``` ```
#### Declaratively
##### With [home-manager](https://github.com/nix-community/home-manager) </details>
<details>
<summary>Declaratively</summary>
<br />
**With [home-manager](https://github.com/nix-community/home-manager)**
```nix copy filename="nix" ```nix copy filename="nix"
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -129,7 +130,7 @@ home.packages = with pkgs; [
]; ];
``` ```
##### system-wide NixOS configuration **system-wide NixOS configuration**
```nix copy filename="nix" ```nix copy filename="nix"
enviroment.systemPackages = with pkgs; [ enviroment.systemPackages = with pkgs; [
@ -137,7 +138,12 @@ enviroment.systemPackages = with pkgs; [
]; ];
``` ```
##### Temporarily </details>
<details>
<summary>Temporarily</summary>
<br />
You can temporarily use Lune in your shell. You can use this to try out Lune before deciding to permanently install it.
```sh copy filename="Bash" ```sh copy filename="Bash"
nix-shell -p lune nix-shell -p lune
@ -145,6 +151,8 @@ nix-shell -p lune
</details> </details>
</details>
<details> <details>
<summary>crates.io</summary> <summary>crates.io</summary>