Added steam

This commit is contained in:
LarsZauberer 2024-04-17 15:56:45 +02:00
commit ae6c27b08f
4 changed files with 32 additions and 0 deletions

View file

@ -120,6 +120,10 @@ in {
"$mod, down, movefocus, d"
"$mod, F, fullscreen"
# Special Workspaces
"$mod SHIFT, F, movetoworkspacesilent, special"
"$mod, s, togglespecialworkspace,"
# Screenshot
"$mod SHIFT, s, exec, grim -g \"$(slurp -d)\" - | wl-copy"

View file

@ -13,6 +13,11 @@
opacity = 0.8;
blur = true;
};
steam = {
enable = true;
gamescope = true;
};
};
hyprland = {

View file

@ -13,5 +13,6 @@ _: {
./WM
./alacritty.nix
./firefox.nix
./steam.nix
];
}

22
modules/gui/steam.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, inputs, pkgs, ... }:
with lib; let
username = config.modules.other.system.username;
cfg = config.modules.programs.steam;
in {
options.modules.programs.steam = {
enable = mkEnableOption "steam";
gamescope = mkEnableOption "gamescope";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = mkIf cfg.gamescope true;
};
home-manager.users.${username} = {
};
};
}