about summary refs log tree commit diff
path: root/modules/games/steam.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2025-02-02 01:48:24 +0300
committerazahi <azat@bahawi.net>2025-02-02 01:48:24 +0300
commitba11ee8c7a130cebcf0b13640563ae748cef0e5f (patch)
tree86b8b52745708a49ca23486155726e02652745d2 /modules/games/steam.nix
parent2025-01-24 (diff)
2025-02-02
Diffstat (limited to '')
-rw-r--r--modules/games/steam.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/games/steam.nix b/modules/games/steam.nix
index d1da8ee..d8c6964 100644
--- a/modules/games/steam.nix
+++ b/modules/games/steam.nix
@@ -13,11 +13,15 @@ in
 
   config = mkIf cfg.enable {
     nixfiles.modules = {
-      common.nix.allowedUnfreePackages = [
-        "steam"
-        "steam-run"
-        "steam-unwrapped"
-      ];
+      common = {
+        nix.allowedUnfreePackages = [
+          "steam"
+          "steam-run"
+          "steam-unwrapped"
+        ];
+
+        xdg.defaultApplications.steam = [ "x-scheme-handler/steam" ];
+      };
 
       games = {
         enable32BitSupport = true;

Consider giving Nix/NixOS a try! <3