86 lines
1.8 KiB
Nix
86 lines
1.8 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
username,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ ./desktop.nix ];
|
|
nixpkgs.config.rocmSupport = true;
|
|
environment.sessionVariables.MANGOHUD = 1;
|
|
home-manager.users.${username} = {
|
|
home.packages = with pkgs; [
|
|
krita
|
|
kdenlive
|
|
helvum
|
|
prusa-slicer
|
|
blender
|
|
freecad
|
|
openscad
|
|
kicad-small
|
|
mangohud
|
|
wineWowPackages.waylandFull
|
|
winetricks
|
|
lutris
|
|
cartridges
|
|
prismlauncher
|
|
];
|
|
programs.obs-studio = {
|
|
enable = true;
|
|
plugins = with pkgs.obs-studio-plugins; [
|
|
wlrobs
|
|
obs-vkcapture
|
|
obs-pipewire-audio-capture
|
|
input-overlay
|
|
];
|
|
};
|
|
xdg.configFile."MangoHud/MangoHud.conf".text = ''
|
|
preset=2
|
|
time
|
|
# text_color=FFFFFF
|
|
# gpu_color=2E9762
|
|
# cpu_color=2E97CB
|
|
# vram_color=AD64C1
|
|
# ram_color=C26693
|
|
# engine_color=EB5B5B
|
|
# io_color=A491D3
|
|
# frametime_color=00FF00
|
|
# background_color=020202
|
|
# media_player_color=FFFFFF
|
|
# wine_color=EB5B5B
|
|
# battery_color=FF9078
|
|
# network_color=E07B85
|
|
'';
|
|
};
|
|
boot = {
|
|
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
|
extraModprobeConfig = ''
|
|
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
|
'';
|
|
};
|
|
hardware = {
|
|
amdgpu = {
|
|
initrd.enable = true;
|
|
opencl.enable = true;
|
|
};
|
|
opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
steam-hardware.enable = true;
|
|
};
|
|
programs = {
|
|
gamemode.enable = true;
|
|
steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
gamescopeSession.enable = true;
|
|
};
|
|
gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
};
|
|
}
|