dotfiles/modules/profiles/gaming.nix

38 lines
894 B
Nix
Raw Normal View History

2023-05-11 17:33:14 +02:00
{ lib
, config
2025-01-22 09:10:27 +01:00
, inputs
2023-05-11 17:33:14 +02:00
, pkgs
2022-07-15 13:11:54 +02:00
, ...
2023-05-11 17:33:14 +02:00
}:
with lib;
let
cfg = config.my.profiles.gaming;
in
{
options.my.profiles.gaming.enable = mkEnableOption "Enable gaming profile";
config = mkIf cfg.enable {
2025-01-22 09:10:27 +01:00
specialisation.gaming.configuration = {
imports = [ inputs.jovian.nixosModules.default ];
environment.persistence."/persist".users.moritz.directories = [
".cache/lutris/"
".config/gamescope"
".local/share/Steam/"
".local/share/lutris/"
];
users.users.moritz.packages = [ pkgs.lutris ];
jovian.steam.enable = true;
jovian.steam.autoStart = true;
jovian.steam.user = "moritz";
jovian.steam.desktopSession = "niri";
my.programs.niri.autoStart = false;
environment.sessionVariables = {
DXVK_HDR = "1";
ENABLE_HDR_WSI = "1";
ENABLE_GAMESCOPE_WSI = "1";
};
};
2023-05-11 17:33:14 +02:00
};
2022-07-15 13:11:54 +02:00
}