mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-06 05:25:58 +01:00
127ae00225
treewide: replace hint with callout treewide: remove ToC header remove <toc>, since it's autogenerated add missing _index.md treewide: add frontmatter treewide: fix headings add weights Configuring,Getting Started: expand in sidebar Add version selector fix links
55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
---
|
|
title: Options & Overrides
|
|
---
|
|
|
|
You can override the package through `.override` or `.overrideAttrs`. This is
|
|
easily achievable on [NixOS](../hyprland-on-nixos) or
|
|
[Home Manager](../hyprland-on-home-manager).
|
|
|
|
## Package options
|
|
|
|
These are the default options that the Hyprland package is built with. These can
|
|
be changed by setting the appropriate option to `true`/`false`.
|
|
|
|
### Package
|
|
|
|
```nix
|
|
(pkgs.hyprland.override { # or inputs.hyprland.packages.${pkgs.system}.hyprland
|
|
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
|
|
})
|
|
```
|
|
|
|
### NixOS & HM modules
|
|
|
|
```nix
|
|
programs.hyprland = { # or wayland.windowManager.hyprland
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
```
|
|
|
|
## Options descriptions
|
|
|
|
### XWayland
|
|
|
|
XWayland is enabled by default in the Nix package. You can disable it either in
|
|
the package itself, or through the module options.
|
|
|
|
### XWayland HiDPI
|
|
|
|
See [XWayland](../../configuring/xwayland).
|
|
|
|
## Using Nix repl
|
|
|
|
If you're using Nix (and not NixOS or Home Manager) and you want to override,
|
|
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 { /* flag here */ }
|
|
```
|
|
|
|
Then you can run Hyprland from the built path.
|