firefox with video acceleration
This commit is contained in:
parent
b1376304b7
commit
7984da51d3
2 changed files with 26 additions and 10 deletions
|
@ -4,8 +4,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> {};
|
unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
||||||
in {
|
in {
|
||||||
|
|
||||||
programs.sway = {
|
programs.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
@ -42,14 +43,26 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
# firefox also needs:
|
||||||
|
#
|
||||||
|
# gfx.webrenderer.enabled = true
|
||||||
|
# widget.wayland-dmabuf-vaapi.enabled = true
|
||||||
|
#
|
||||||
|
# check in `about:support` that
|
||||||
|
# * Composing -> Webrenderer
|
||||||
|
unstable.firefox-bin
|
||||||
|
libva
|
||||||
|
libva-utils
|
||||||
|
mesa
|
||||||
|
|
||||||
librsvg
|
librsvg
|
||||||
unstable.mypaint
|
unstable.mypaint
|
||||||
unstable.mypaint-brushes
|
unstable.mypaint-brushes
|
||||||
|
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
numix-icon-theme
|
numix-icon-theme
|
||||||
|
|
||||||
alacritty
|
alacritty
|
||||||
firefox
|
|
||||||
mumble
|
mumble
|
||||||
neofetch
|
neofetch
|
||||||
inkscape
|
inkscape
|
||||||
|
@ -64,12 +77,13 @@ in {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = ''
|
text = ''
|
||||||
#! ${pkgs.bash}/bin/bash
|
#! ${pkgs.bash}/bin/bash
|
||||||
|
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
export _JAVA_AWT_WM_NOREPARENTING=1
|
||||||
export QT_QPA_PLATFORM=wayland-egl
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
export QT_WAYLAND_FORCE_DPI=physical
|
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
||||||
export SDL_VIDEODRIVER=wayland
|
export QT_WAYLAND_FORCE_DPI=96
|
||||||
export _JAVA_AWT_WM_NOREPARENTING=1
|
export QT_QPA_PLATFORM=wayland-egl
|
||||||
|
export SDL_VIDEODRIVER=wayland
|
||||||
exec ${pkgs.dbus}/bin/dbus-run-session ${pkgs.sway}/bin/sway
|
exec ${pkgs.dbus}/bin/dbus-run-session ${pkgs.sway}/bin/sway
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -85,4 +99,8 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
hardware.opengl = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> {};
|
unstable = import <nixos-unstable> {};
|
||||||
mozilla = import <mozilla> {};
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
emacs
|
emacs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue