mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2025-12-26 22:50:03 +01:00
treewide: add missing curly braces to Nix codeblocks (#1126)
This commit is contained in:
parent
7f2ef6a99f
commit
a6f9e34ab9
5 changed files with 36 additions and 22 deletions
|
|
@ -83,7 +83,9 @@ In case of errors you can downgrade easily with [downgrade](https://github.com/a
|
|||
Enable Hyprland in your NixOS configuration:
|
||||
|
||||
```nix
|
||||
programs.hyprland.enable = true;
|
||||
{
|
||||
programs.hyprland.enable = true;
|
||||
}
|
||||
```
|
||||
|
||||
For more details, read the [Nix page](../../Nix).
|
||||
|
|
|
|||
|
|
@ -211,12 +211,14 @@ defined in your NixOS module, you can now do so as long as you're running
|
|||
or later by setting your `package` and `portalPackage` to `null`.
|
||||
|
||||
```nix {filename="home.nix"}
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# set the Hyprland and XDPH packages to null to use the ones from the NixOS module
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
};
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# set the Hyprland and XDPH packages to null to use the ones from the NixOS module
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Make sure **not** to mix versions of Hyprland and XDPH.
|
||||
|
|
@ -233,7 +235,9 @@ services. This is the most common with user-configured services such as
|
|||
To fix it, add to your config:
|
||||
|
||||
```nix {filename="home.nix"}
|
||||
wayland.windowManager.hyprland.systemd.variables = ["--all"];
|
||||
{
|
||||
wayland.windowManager.hyprland.systemd.variables = ["--all"];
|
||||
}
|
||||
```
|
||||
|
||||
This setting will produce the following entry in the Hyprland config:
|
||||
|
|
|
|||
|
|
@ -155,15 +155,17 @@ If you prefer not to use Home Manager, you can also resolve the issues with GTK
|
|||
themes using dconf like so:
|
||||
|
||||
```nix {filename="configuration.nix"}
|
||||
programs.dconf.profiles.user.databases = [
|
||||
{
|
||||
settings."org/gnome/desktop/interface" = {
|
||||
gtk-theme = "Adwaita";
|
||||
icon-theme = "Flat-Remix-Red-Dark";
|
||||
font-name = "Noto Sans Medium 11";
|
||||
document-font-name = "Noto Sans Medium 11";
|
||||
monospace-font-name = "Noto Sans Mono Medium 11";
|
||||
};
|
||||
}
|
||||
];
|
||||
{
|
||||
programs.dconf.profiles.user.databases = [
|
||||
{
|
||||
settings."org/gnome/desktop/interface" = {
|
||||
gtk-theme = "Adwaita";
|
||||
icon-theme = "Flat-Remix-Red-Dark";
|
||||
font-name = "Noto Sans Medium 11";
|
||||
document-font-name = "Noto Sans Medium 11";
|
||||
monospace-font-name = "Noto Sans Mono Medium 11";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -247,7 +247,9 @@ you haven't already.
|
|||
For Nix users, the equivalent of the above is
|
||||
|
||||
```nix {filename="configuration.nix"}
|
||||
hardware.nvidia.powerManagement.enable = true;
|
||||
{
|
||||
hardware.nvidia.powerManagement.enable = true;
|
||||
}
|
||||
```
|
||||
|
||||
{{< callout >}}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,9 @@ pacman -S uwsm libnewt
|
|||
{{% details title="Nix/NixOS" closed="true" %}}
|
||||
|
||||
```nix
|
||||
programs.hyprland.withUWSM = true;
|
||||
{
|
||||
programs.hyprland.withUWSM = true;
|
||||
}
|
||||
```
|
||||
|
||||
The above option generates a new desktop entry, `hyprland-uwsm.desktop`, which will be available in display managers.
|
||||
|
|
@ -34,7 +36,9 @@ For more info, read the [option](https://search.nixos.org/options?channel=unstab
|
|||
If you use the [Home Manager module](../../Nix/Hyprland-on-Home-Manager), make sure to disable the systemd integration, as it conflicts with uwsm.
|
||||
|
||||
```nix
|
||||
wayland.windowManager.hyprland.systemd.enable = false;
|
||||
{
|
||||
wayland.windowManager.hyprland.systemd.enable = false;
|
||||
}
|
||||
```
|
||||
|
||||
{{< /callout >}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue