From 208bea6f6079cba484bf9ab67fa965b378d6c353 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Mon, 4 Nov 2024 16:10:58 +0100 Subject: [PATCH] chore(marr): clean swayidle and steam --- home/sway/default.nix | 4 ++++ hosts/marr/default.nix | 1 - hosts/marr/home.nix | 1 - modules/programs/steam.nix | 23 +++++++++++++++++------ 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/home/sway/default.nix b/home/sway/default.nix index 3bf30b5..190ae64 100644 --- a/home/sway/default.nix +++ b/home/sway/default.nix @@ -7,6 +7,10 @@ ... }: lib.mkIf osConfig.programs.sway.enable { + + services.swayidle.enable = true; + programs.hyprlock.enable = true; + wayland.windowManager.sway = let homeDirectory = config.home.homeDirectory; diff --git a/hosts/marr/default.nix b/hosts/marr/default.nix index 8c06a70..c573c3d 100644 --- a/hosts/marr/default.nix +++ b/hosts/marr/default.nix @@ -3,7 +3,6 @@ pkgs, inputs, username, - pubkeys, ... }: { diff --git a/hosts/marr/home.nix b/hosts/marr/home.nix index fbdbf75..8ba4501 100644 --- a/hosts/marr/home.nix +++ b/hosts/marr/home.nix @@ -40,7 +40,6 @@ services = { blueman-applet.enable = true; - swayidle.enable = true; syncthing.enable = true; }; diff --git a/modules/programs/steam.nix b/modules/programs/steam.nix index 2500eb3..08591f9 100644 --- a/modules/programs/steam.nix +++ b/modules/programs/steam.nix @@ -4,11 +4,22 @@ config, ... }: -lib.mkIf config.programs.steam.enable { - programs.steam = { - gamescopeSession.enable = true; # Adds a steam entry to the login manager - extest.enable = true; - localNetworkGameTransfers.openFirewall = true; - extraCompatPackages = with pkgs; [ proton-ge-bin ]; +{ + config = lib.mkIf config.programs.steam.enable { + programs.gamescope = { + enable = true; + capSysNice = true; + }; + + environment = { + systemPackages = [ pkgs.mangohud ]; + }; + + programs.steam = { + gamescopeSession.enable = true; # Adds a steam entry to the login manager + extest.enable = true; + localNetworkGameTransfers.openFirewall = true; + extraCompatPackages = with pkgs; [ proton-ge-bin ]; + }; }; }