nixos/system/hyprland.nix
Evie Litherland-Smith c3b787ce18 Change mpv for mplayer, fixes emacs/emms/MPRIS issues I was having
Reorganise, remove home/media/default.nix and move some home.package
definitions that I'd missed into relevant environment.systemPackages
2023-12-21 11:25:48 +00:00

57 lines
1.2 KiB
Nix

{ config, lib, pkgs, user, ... }:
{
imports = [ ./desktop.nix ];
nixpkgs.config.chromium.commandLineArgs =
"--enable-features=UseOzonePlatform --ozone-platform=wayland";
environment = {
sessionVariables = {
NIXOS_OZONE_WL = "1";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
};
systemPackages = with pkgs; [
libsForQt5.polkit-kde-agent
xdg-utils
wlr-randr
hyprpaper
pipewire
wireplumber
wtype
wl-clipboard
grim
slurp
swayimg
pamixer
pavucontrol
playerctl
brightnessctl
networkmanagerapplet
bluez
signal-desktop
whatsapp-for-linux
webcord
];
};
services = {
blueman.enable = true;
udisks2.enable = true;
gvfs.enable = true;
tumbler.enable = true;
xserver.displayManager.defaultSession = "hyprland";
};
xdg.portal.enable = true;
programs = {
hyprland = {
enable = true;
xwayland.enable = true;
};
thunar = {
enable = true;
plugins = with pkgs.xfce; [ thunar-archive-plugin thunar-volman ];
};
};
}