Skip to content

Commit

Permalink
steam
Browse files Browse the repository at this point in the history
  • Loading branch information
x0ba committed Feb 7, 2025
1 parent 64b55b9 commit 0d2a848
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/home/apps/ghostty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ in {
{
# appearance
font-family = "BerkeleyMono Nerd Font";
font-size = 13;
theme = "light:catppuccin-latte,dark:catppuccin-mocha";
window-padding-x = "5";
window-padding-y = "5";
Expand All @@ -65,6 +64,7 @@ in {
(mkIf isLinux {
gtk-single-instance = true;
adw-toolbar-style = "flat";
font-size = 11;
gtk-tabs-location = "bottom";
gtk-wide-tabs = false;
window-decoration = false;
Expand All @@ -74,6 +74,7 @@ in {
(mkIf isDarwin {
macos-auto-secure-input = true;
macos-icon = "custom-style";
font-size = 13;
macos-icon-frame = "chrome";
keybind = "global:ctrl+grave_accent=toggle_quick_terminal";
})
Expand Down
2 changes: 1 addition & 1 deletion modules/home/desktop/niri/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ in {
}
spawn-at-startup "${lib.getExe pkgs.xwayland-satellite}"
spawn-at-startup "${lib.getExe pkgs.swaybg}" "-i" "${../wallpapers/space.png}"
spawn-at-startup "${lib.getExe pkgs.swaybg}" "-i" "${../wallpapers/man.jpg}"
spawn-at-startup "${lib.getExe pkgs.waybar}"
spawn-at-startup "${swayosd-server}"
spawn-at-startup "sh" "-c" "${lib.getExe pkgs.swayidle} -w timeout 300 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' before-sleep '${lib.getExe config.programs.swaylock.package} -f'"
Expand Down
4 changes: 4 additions & 0 deletions modules/home/desktop/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ in {
};
services = {
clipman.enable = true;
gnome-keyring = {
enable = true;
components = ["secrets"];
};
udiskie.enable = true;
};
};
Expand Down
44 changes: 44 additions & 0 deletions modules/nixos/apps/gaming/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
options,
config,
pkgs,
lib,
namespace,
...
}:
with lib;
with lib.${namespace}; let
cfg = config.${namespace}.apps.gaming;
in {
options.${namespace}.apps.gaming = with types; {
enable = mkBoolOpt false "Whether or not to enable gaming apps.";
};

config = mkIf cfg.enable {
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
extraPackages = with pkgs; [
corefonts
mangohud
wineWowPackages.staging
winetricks
];
};
gamemode = {
enable = true;
settings = {
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
};
hardware.graphics = {
enable32Bit = true;
};
services.pulseaudio.support32Bit = true;
};
}
6 changes: 6 additions & 0 deletions modules/nixos/system/hardware_acceleration/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ in {
config = mkIf cfg.enable {
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
intel-media-driver
];
};
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
};
Expand Down
1 change: 1 addition & 0 deletions systems/x86_64-linux/phantom/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ in {
common.enable = true;
desktop.enable = true;
};
apps.gaming.enable = true;
apps.onepassword.enable = true;
apps.openssh.enable = true;
user = {
Expand Down

0 comments on commit 0d2a848

Please sign in to comment.