mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-22 02:35:57 +01:00
README: add Nix section
This commit is contained in:
parent
097706a6c1
commit
e15ac98dc6
1 changed files with 40 additions and 1 deletions
41
README.md
41
README.md
|
@ -12,8 +12,47 @@ This repo houses official plugins for Hyprland.
|
||||||
- csgo-vulkan-fix -> fixes custom resolutions on CS:GO with `-vulkan`
|
- csgo-vulkan-fix -> fixes custom resolutions on CS:GO with `-vulkan`
|
||||||
- hyprbars -> adds title bars to windows
|
- hyprbars -> adds title bars to windows
|
||||||
|
|
||||||
|
# Nix
|
||||||
|
|
||||||
|
To use these plugins, it's recommended that you are already using the
|
||||||
|
[Hyprland flake](https://github.com/hyprwm/Hyprland).
|
||||||
|
First, add this flake to your inputs:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
inputs = {
|
||||||
|
# ...
|
||||||
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
|
hyprland-plugins = {
|
||||||
|
url = "github:hyprwm/hyprland-plugins";
|
||||||
|
inputs.hyprland.follows = "hyprland";
|
||||||
|
};
|
||||||
|
|
||||||
|
# ...
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
The `inputs.hyprland.follows` guarantees the plugins will always be built using
|
||||||
|
your locked Hyprland version, thus you will never get version mismatches that
|
||||||
|
lead to errors.
|
||||||
|
|
||||||
|
After that's done, you can use the plugins with the Home Manager module like
|
||||||
|
this:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{inputs, pkgs, ...}: {
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
# ...
|
||||||
|
plugins = [
|
||||||
|
inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars
|
||||||
|
# ...
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
Feel free to open issues and MRs with fixes.
|
Feel free to open issues and MRs with fixes.
|
||||||
|
|
||||||
If you want your plugin added here, contact vaxry beforehand.
|
If you want your plugin added here, contact vaxry beforehand.
|
||||||
|
|
Loading…
Reference in a new issue