about summary refs log tree commit diff
path: root/modules/games/steam.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/games/steam.nix')
-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