2024-07-30 15:06:34 +01:00
|
|
|
{
|
2024-08-30 12:57:02 +01:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
username,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [ ./desktop.nix ];
|
2024-09-28 08:19:58 +01:00
|
|
|
environment.sessionVariables.MANGOHUD = 1;
|
2024-08-30 12:57:02 +01:00
|
|
|
home-manager.users.${username} = {
|
2024-10-17 06:07:29 +01:00
|
|
|
home = {
|
|
|
|
stateVersion = "23.05";
|
|
|
|
packages = with pkgs; [
|
|
|
|
krita
|
|
|
|
kdenlive
|
|
|
|
helvum
|
|
|
|
prusa-slicer
|
|
|
|
blender
|
|
|
|
freecad
|
|
|
|
openscad
|
|
|
|
kicad-small
|
|
|
|
mangohud
|
|
|
|
wineWowPackages.waylandFull
|
|
|
|
winetricks
|
|
|
|
lutris
|
|
|
|
cartridges
|
|
|
|
prismlauncher
|
|
|
|
];
|
|
|
|
};
|
2024-08-30 12:57:02 +01:00
|
|
|
programs.obs-studio = {
|
|
|
|
enable = true;
|
|
|
|
plugins = with pkgs.obs-studio-plugins; [
|
|
|
|
wlrobs
|
|
|
|
obs-vkcapture
|
|
|
|
obs-pipewire-audio-capture
|
|
|
|
input-overlay
|
|
|
|
];
|
|
|
|
};
|
2024-10-19 07:15:51 +01:00
|
|
|
xdg.configFile."MangoHud/MangoHud.conf".text = with config.lib.stylix.scheme; ''
|
2024-09-28 09:55:12 +01:00
|
|
|
preset=2
|
|
|
|
time
|
2024-10-18 07:36:12 +01:00
|
|
|
text_color=${base00}
|
|
|
|
gpu_color=${green}
|
|
|
|
cpu_color=${green}
|
|
|
|
vram_color=${magenta}
|
|
|
|
ram_color=${magenta}
|
|
|
|
engine_color=${red}
|
|
|
|
io_color=${magenta}
|
|
|
|
frametime_color=${green}
|
|
|
|
background_color=${base05}
|
|
|
|
media_player_color=${base00}
|
|
|
|
wine_color=${red}
|
|
|
|
battery_color=${orange}
|
|
|
|
network_color=${red}
|
2024-09-28 09:55:12 +01:00
|
|
|
'';
|
2024-08-30 12:57:02 +01:00
|
|
|
};
|
2024-03-23 06:49:46 +00:00
|
|
|
boot = {
|
2024-07-30 15:06:34 +01:00
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
2024-03-23 06:49:46 +00:00
|
|
|
extraModprobeConfig = ''
|
|
|
|
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
|
|
|
'';
|
|
|
|
};
|
2024-05-21 19:24:24 +01:00
|
|
|
hardware = {
|
2024-10-08 07:07:25 +01:00
|
|
|
amdgpu = {
|
|
|
|
initrd.enable = true;
|
|
|
|
opencl.enable = true;
|
|
|
|
};
|
2024-05-21 19:24:24 +01:00
|
|
|
opengl = {
|
2024-08-30 12:57:02 +01:00
|
|
|
enable = true;
|
2024-05-21 19:24:24 +01:00
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
steam-hardware.enable = true;
|
2024-03-23 06:49:46 +00:00
|
|
|
};
|
2024-10-17 06:07:29 +01:00
|
|
|
system.stateVersion = "23.05";
|
2024-09-10 08:05:59 +01:00
|
|
|
programs = {
|
2024-09-13 11:08:12 +01:00
|
|
|
gamemode.enable = true;
|
2024-09-10 08:05:59 +01:00
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
gamescopeSession.enable = true;
|
|
|
|
};
|
2024-09-13 11:08:12 +01:00
|
|
|
gamescope = {
|
|
|
|
enable = true;
|
|
|
|
capSysNice = true;
|
|
|
|
};
|
2024-05-21 19:24:24 +01:00
|
|
|
};
|
2024-10-08 07:13:34 +01:00
|
|
|
services.ollama = {
|
|
|
|
enable = true;
|
|
|
|
acceleration = "rocm";
|
|
|
|
};
|
2024-01-12 22:06:16 +00:00
|
|
|
}
|