Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarified how to make it run in Nixos #1262

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion wiki/Configuration:-Named-Workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ window-rule {
}
```

Named workspaces initially appear in the order they are declared in the config file.
Named workspaces initially appear in the order they are declared in the config file and that's the number they are assigned implicitely. If you modify them or create them while using Niri the order would not be assigned correctly, you'll need to restart Niri for their ordering to take effect.

When editing the config while niri is running, newly declared named workspaces will appear at the very top of a monitor.

If you delete some named workspace from the config, the workspace will become normal (unnamed), and if there are no windows on it, it will be removed (as any other normal workspace).
Expand Down
19 changes: 19 additions & 0 deletions wiki/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ When this happens, you usually see a black screen when trying to start niri from

Also, on Intel graphics, you may need a workaround described [here](https://nixos.wiki/wiki/Intel_Graphics).

To run Niri on NixOS is as simple as editing your configuration.nix to add

```nix
{
programs.niri.enable = true;
}
```

For your Electron-based apps to not fail it is highly recommendable you also add on that file

```
{
environment = {
sessionVariables.NIXOS_OZONE_WL = "1";
sessionVariables.ELECTRON_OZONE_PLATFORM_HINT = "auto";
};
}
```

### Virtual Machines

To run niri in a VM, make sure to enable 3D acceleration.
Expand Down