Some errors from video (not too bad): At 2:38 alternative to “dunst” is “mako”!!! pkgs.wl-clipboard, not pkgs.wl-copy

# Enabling hyprlnd on NixOS
programs.hyprland.enable = true;
programs.hyprland = {
  enable = true;
  nvidiaPatches = true;
  xwayland.enable = true;
};

environment.sessionVariables = {
  # If your cursor becomes invisible
  WLR_NO_HARDWARE_CURSORS = "1";
  # Hint electron apps to use wayland
  NIXOS_OZONE_WL = "1";
};

hardware = {
    # Opengl
    opengl.enable = true;

    # Most wayland compositors need this
    nvidia.modesetting.enable = true;
};

# waybar
(pkgs.waybar.overrideAttrs (oldAttrs: {
    mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
  })
)

# XDG portal
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];

# Enable sound with pipewire.
sound.enable = true;
security.rtkit.enable = true;
services.pipewire = {
  enable = true;
  alsa.enable = true;
  alsa.support32Bit = true;
  pulse.enable = true;
  jack.enable = true;
};

# rofi keybind
bind = $mainMod, S, exec, rofi -show drun -show-icons
You are viewing a single thread.
View all comments
1 point

I didnt watch your video but im here to say NixOS and Hyprland work great together. I have it running with Nvidia using Prime. Love them both!

permalink
report
reply
3 points
*

🤖 bleep bloop 🤖

tldw

🤖 bleep bloop 🤖

permalink
report
parent
reply

NixOS

!nixos@infosec.pub

Create post

NixOS is a Linux distribution built on top of the Nix package manager. Its declarative configuration allows reliable system upgrades via several official channels of stability and size.

This community discusses NixOS, Nix, and everything related.

Community stats

  • 86

    Monthly active users

  • 98

    Posts

  • 165

    Comments

Community moderators