this post was submitted on 20 Jul 2023
14 points (93.8% liked)

NixOS

1064 readers
2 users here now

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.

founded 2 years ago
MODERATORS
 

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 comment's thread
view the rest of the comments
[โ€“] fuckReddit@infosec.pub 3 points 2 years ago* (last edited 2 years ago)

๐Ÿค– bleep bloop ๐Ÿค–

tldw

๐Ÿค– bleep bloop ๐Ÿค–