mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-26 06:25:59 +01:00
Nix: add non-NixOS instructions
This commit is contained in:
parent
8f9c6b1b75
commit
e82926f129
1 changed files with 35 additions and 2 deletions
|
@ -95,8 +95,41 @@ modules set.
|
||||||
|
|
||||||
## Non-NixOS install
|
## Non-NixOS install
|
||||||
|
|
||||||
If you plan on using Hyprland through Nix, outside of NixOS, please use
|
### With flakes
|
||||||
[nixGL](https://github.com/guibou/nixGL).
|
|
||||||
|
First, [enable flakes](https://nixos.wiki/wiki/Flakes#Enable_flakes).
|
||||||
|
|
||||||
|
Once you have flakes working, install Hyprland through `nix profile`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ nix profile install github:hyprwm/Hyprland
|
||||||
|
```
|
||||||
|
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
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, you can run
|
||||||
|
```sh
|
||||||
|
$ nix profile upgrade '.*'
|
||||||
|
```
|
||||||
|
in order to upgrade all your packages.
|
||||||
|
|
||||||
|
Check the
|
||||||
|
[nix profile](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-profile.html)
|
||||||
|
command documentation for other upgrade options.
|
||||||
|
|
||||||
## Cachix
|
## Cachix
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue