mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-15 09:45:58 +01:00
9a9d89b96a
* clear-up nixos installation * Nix: clear up wording * Nix: add example config for HM Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
62 lines
1.4 KiB
Markdown
62 lines
1.4 KiB
Markdown
If you use Nix on distros other than NixOS, you can still use Hyprland.
|
|
|
|
The best option would be through [Home Manager](../Hyprland-on-Home-Manager).
|
|
|
|
However, if Home Manager is not for you, you can use it as a normal package.
|
|
|
|
First, [enable flakes](https://nixos.wiki/wiki/Flakes#Enable_flakes).
|
|
Once you have flakes working, install Hyprland through `nix profile`:
|
|
|
|
{{< tabs "uniqueid" >}}
|
|
|
|
{{< tab "From Nixpkgs" >}}
|
|
|
|
The easiest method is to get Hyprland directly from Nixpkgs:
|
|
|
|
```sh
|
|
nix profile install nixpkgs#hyprland
|
|
```
|
|
|
|
{{< /tab >}}
|
|
{{< tab "From the Flake" >}}
|
|
|
|
NOTE: Make sure to enable [Cachix](../Cachix) first.
|
|
|
|
```sh
|
|
nix profile install github:hyprwm/Hyprland
|
|
```
|
|
|
|
{{< /tab >}}
|
|
{{< /tabs >}}
|
|
|
|
Since you're using Hyprland outside of NixOS, it won't be able to find graphics
|
|
drivers. To get around that, you can use [nixGL](https://github.com/guibou/nixGL).
|
|
|
|
First, install it, in the same manner you installed Hyprland:
|
|
|
|
```sh
|
|
nix profile install github:guibou/nixGL --impure
|
|
```
|
|
|
|
Impure is needed due to `nixGL`'s reliance on hardware information.
|
|
|
|
From now on, you can run Hyprland by invoking it with nixGL
|
|
|
|
```sh
|
|
nixGL Hyprland
|
|
```
|
|
|
|
or by creating a wrapper script that runs the above command inside.
|
|
|
|
## Upgrading
|
|
|
|
In order to upgrade all your packages, you can run
|
|
|
|
```sh
|
|
nix profile upgrade '.*'
|
|
```
|
|
|
|
Check the
|
|
[nix profile](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-profile.html)
|
|
command documentation for other upgrade options.
|
|
|