Skip to content

Commit

Permalink
Nix: document more override flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Nov 27, 2023
1 parent aeeb0f5 commit 3c82b48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/Nix/Options & Overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ can be changed by setting the appropriate option to `true`/`false`.

```nix
(pkgs.hyprland.override { # or inputs.hyprland.packages.${pkgs.system}.hyprland
enableXWayland = true;
enableXWayland = true; # whether to enable XWayland
legacyRenderer = false; # whether to use the legacy renderer (for old GPUs)
withSystemd = true; # whether to build with systemd support
})
```

Expand Down Expand Up @@ -43,7 +45,7 @@ you can do it like this
```nix
$ nix repl
nix-repl> :lf "github:hyprwm/Hyprland"
nix-repl> :bl outputs.packages.x86_64-linux.hyprland.override
nix-repl> :bl outputs.packages.x86_64-linux.hyprland.override { /* flag here */ }
```

Then you can run Hyprland from the built path.
4 changes: 4 additions & 0 deletions pages/Nix/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ For other NixOS options, see [Hyprland on NixOS](./Hyprland-on-NixOS).
## Home-manager module

Read [Hyprland on Home Manager](./Hyprland-on-Home-Manager).

## Options and overrides

Read [Options & Overrides](./Options-Overrides).

0 comments on commit 3c82b48

Please sign in to comment.