92 lines
No EOL
1.7 KiB
Nix
92 lines
No EOL
1.7 KiB
Nix
{pkgs, ...}: {
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
# Testing login managers...
|
|
# GreetD
|
|
programs.regreet = {
|
|
enable = true;
|
|
};
|
|
|
|
# Enabling hyprlnd on NixOS
|
|
programs.hyprland = {
|
|
enable = true;
|
|
enableNvidiaPatches = 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;
|
|
};
|
|
|
|
# XDG portal
|
|
xdg.portal.enable = true;
|
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
|
|
# system packages
|
|
environment.systemPackages = with pkgs; [
|
|
# waybar
|
|
(waybar.overrideAttrs (oldAttrs: {
|
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
|
})
|
|
)
|
|
# Notofication daemon
|
|
libnotify
|
|
mako
|
|
# for x11
|
|
# dunst
|
|
|
|
# Wallpaper daemons
|
|
# hyprpaper
|
|
# swaybg
|
|
# wpaperd
|
|
# mpvpaper
|
|
swww
|
|
|
|
# Terminal
|
|
# hyprlands default terminal
|
|
kitty
|
|
# alacritty
|
|
# wezterm
|
|
|
|
# App launchers
|
|
rofi-wayland
|
|
# gtk version:
|
|
# wofi
|
|
|
|
# suggestions
|
|
# bemenu
|
|
# fuzzel
|
|
# tofi
|
|
|
|
# Other apps:
|
|
networkmanagerapplet
|
|
|
|
# Screenshot utility:
|
|
grim
|
|
slurp
|
|
wl-clipboard
|
|
|
|
# fonts
|
|
font-awesome
|
|
];
|
|
|
|
# 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;
|
|
};
|
|
} |