mirror of
https://github.com/lune-org/docs.git
synced 2025-04-10 13:30:53 +01:00
refactor(nix): replace headings
This commit is contained in:
parent
94885e53e6
commit
95f35de8ff
1 changed files with 23 additions and 15 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue