blob: 8960d8808debdbdb231345dc4501f32bab89b7fc (
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
46
47
48
49
50
|
{
config,
lib,
pkgs,
osConfig,
...
}: let
cfg = config.desktop;
inherit (lib) mkEnableOption mkIf;
desktops = ["budgie" "gnome" "plasma"];
in {
imports = [
./budgie
./gnome
./plasma
../programs/mangohud.nix
../programs/firefox.nix
];
options.desktop.enable = mkEnableOption "desktop configuration" // {default = osConfig.desktop.enable or false;};
config = mkIf cfg.enable {
desktop = lib.genAttrs desktops (desktop: {enable = osConfig.desktop.${desktop}.enable or false;});
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"
];
};
};
};
}
|