Compare commits

...

6 commits

5 changed files with 43 additions and 4 deletions

View file

@ -65,6 +65,7 @@ outputs = {nixpkgs, nixpkgs-unstable, agenix, home-manager, home-manager-unstabl
./roles/common
./roles/desktop
./roles/kde
./roles/gaming
./machines/Archie
];
};

View file

@ -41,12 +41,12 @@
"Status" = "default";
};
/*
Not sure what this does,
but https://wiki.archlinux.org/title/Firefox#KDE_integration
tells me to enable it
https://wiki.archlinux.org/title/Firefox#KDE_integration tells me to enable this,
but strangely enough doing so makes firefox ask to be set as the default browser
every time you start it up, so I'll disable it
*/
"widget.use-xdg-desktop-portal.mime-handler" = {
"Value" = 1;
"Value" = 0;
"Status" = "default";
};
};

8
roles/gaming/default.nix Executable file
View file

@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./steam.nix
./mangohud.nix
];
}

19
roles/gaming/mangohud.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, ... }:
{
# This does the same as enableSessionWide does on the mangohud config
environment.sessionVariables = { MANGOHUD = "1"; MANGOHUD_DLSYM = "1"; };
home-manager.users.toast = { config, ... }:
{
programs.mangohud = {
enable = true;
# TODO: fix envvars set by home manager not applying for some reason
# This only works for Vulkan, openGL programs still need the mangohud wrapper
enableSessionWide = true;
settings = {
preset = 4;
};
};
};
}

11
roles/gaming/steam.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
programs.steam = {
enable = true;
# Doubt that I'll use it, but I'll enable it anyways
remotePlay.openFirewall = true;
};
# Some linux native games (rise of the tomb raider) use alsa for sound
services.pipewire.alsa.enable = true;
}