blob: dc5f93bb84e601ec7246de1fe5ec89db9cff244a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.desktop;
inherit (lib) mkEnableOption mkIf;
in {
imports = [
./budgie
./gnome
./plasma
../programs/mangohud.nix
../programs/firefox.nix
];
options.desktop.enable = mkEnableOption "enable desktop configuration";
config = mkIf cfg.enable {
home.packages = with pkgs; [
discord
element-desktop
spotify
steam
prismlauncher
];
programs = {
chromium = {
enable = true;
# hw accel support
commandLineArgs = [
"--ignore-gpu-blocklist"
"--enable-gpu-rasterization"
"--enable-gpu-compositing"
"--enable-native-gpu-memory-buffers"
"--enable-zero-copy"
"--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization,RawDraw,WebRTCPipeWireCapturer,Vulkan,WaylandWindowDecorations,WebUIDarkMode"
"--force-dark-mode"
];
};
};
};
}
|