From 95f35de8ff177034012b9c8024ac4ced76b4f96a Mon Sep 17 00:00:00 2001 From: Eggflaw Date: Sun, 30 Jun 2024 19:45:32 +0900 Subject: [PATCH] refactor(nix): replace headings --- pages/getting-started/1-installation.mdx | 38 ++++++++++++++---------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/pages/getting-started/1-installation.mdx b/pages/getting-started/1-installation.mdx index 150133b..e4442a2 100644 --- a/pages/getting-started/1-installation.mdx +++ b/pages/getting-started/1-installation.mdx @@ -97,31 +97,32 @@ yay -S [PACKAGE_NAME] macOS* and Linux users can use [Nix](https://nixos.org/) to install Lune. - 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). -#### Imperatively - -##### On NixOS +
+Imperatively +
+**NixOS** ```sh copy filename="Bash" nix-env -iA nixos.lune -``` +``` -##### On Non NixOS without flakes +**Non NixOS** ```sh copy filename="Bash" nix-env -iA nixpkgs.lune -``` - -##### On Non NixOS with flakes - -```sh copy filename="Bash" +# If you are using flakes nix profile install nixpkgs#lune ``` -#### Declaratively -##### With [home-manager](https://github.com/nix-community/home-manager) +
+ +
+Declaratively +
+**With [home-manager](https://github.com/nix-community/home-manager)** ```nix copy filename="nix" home.packages = with pkgs; [ @@ -129,7 +130,7 @@ home.packages = with pkgs; [ ]; ``` -##### system-wide NixOS configuration +**system-wide NixOS configuration** ```nix copy filename="nix" enviroment.systemPackages = with pkgs; [ @@ -137,7 +138,12 @@ enviroment.systemPackages = with pkgs; [ ]; ``` -##### Temporarily +
+ +
+Temporarily +
+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" nix-shell -p lune @@ -145,6 +151,8 @@ nix-shell -p lune
+ +
crates.io