treewide: add missing curly braces to Nix codeblocks (#1126)

This commit is contained in:
fazzi 2025-06-19 19:26:45 +01:00 committed by GitHub
parent 7f2ef6a99f
commit a6f9e34ab9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 36 additions and 22 deletions

View file

@ -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).

View file

@ -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:

View file

@ -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";
};
}
];
}
```

View file

@ -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 >}}

View file

@ -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 >}}