remove overskride

This commit is contained in:
twoneis 2024-10-13 14:12:12 +02:00
parent 3fd39b26ca
commit b214d9e527
7 changed files with 27 additions and 90 deletions

View file

@ -1,5 +1,5 @@
{ lib, config, pkgs, ... }: let
inherit (lib) mkIf mkMerge;
inherit (lib) mkIf;
inherit (config) conf;
mkXwlWrapper = import ../niri/xwl-wrapper.nix;
holo-script = pkgs.writeShellApplication {
@ -20,43 +20,33 @@
app = "${pkgs.steam}/bin/steam";
name = "Steam Wrapped";
};
in mkIf conf.games.enable (mkMerge [
(mkIf conf.impermanence.enable {
environment.persistence."/persist".users.${conf.username}= {
directories = [
"Games"
".steam"
".local/share/PrismLauncher"
];
};
}) {
programs.steam.enable = true;
programs.gamescope.enable = true;
programs.gamemode.enable = true;
in mkIf conf.games.enable {
programs.steam.enable = true;
programs.gamescope.enable = true;
programs.gamemode.enable = true;
environment.sessionVariables = {
MANGOHUD_CONFIGFILE = "$HOME/.config/MangoHud/MangoHud.conf";
MANGOHUD_CONFIG = "read_cfg";
};
environment.sessionVariables = {
MANGOHUD_CONFIGFILE = "$HOME/.config/MangoHud/MangoHud.conf";
MANGOHUD_CONFIG = "read_cfg";
};
home-manager.users.${conf.username} = {
home.packages = [
pkgs.prismlauncher
pkgs.heroic
pkgs.itch
holo
steam-wrapped
];
home-manager.users.${conf.username} = {
home.packages = [
pkgs.prismlauncher
pkgs.heroic
pkgs.itch
holo
steam-wrapped
];
programs.mangohud = {
enable = true;
settings = {
gamemode = true;
refresh_rate = true;
fsr = true;
resolution = true;
};
programs.mangohud = {
enable = true;
settings = {
gamemode = true;
refresh_rate = true;
fsr = true;
resolution = true;
};
};
}
])
};
}