feat(nixosModules/desktop): add steam

This commit is contained in:
Mohammad Rafiq 2025-05-25 19:08:11 +08:00
parent cd569cd72f
commit 5396f6dd63
No known key found for this signature in database
5 changed files with 53 additions and 23 deletions

View file

@ -21,5 +21,10 @@
zeroconf_port = 5353;
};
})
(lib.mkIf osConfig.desktop.enableSteam {
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [
".local/share/Steam"
];
})
];
}

View file

@ -25,6 +25,7 @@ in
"uwsm app -- $LOCKSCREEN"
"uwsm app -- $NOTIFICATION_DAEMON"
];
xwayland.force_zero_scaling = true;
}
(import ./decoration.nix)
(import ./keybinds.nix { inherit pkgs; })
@ -32,7 +33,13 @@ in
};
xdg.configFile."uwsm/env".text = # sh
''
export GDK_SCALE=${mainMonitor.scale}
export STEAM_FORCE_DESKTOPUI_SCALING=${mainMonitor.scale}
'';
xdg.configFile."uwsm/env-hyprland".text = # sh
''
export GDK_SCALE=${mainMonitor.scale}
export STEAM_FORCE_DESKTOPUI_SCALING=${mainMonitor.scale}
'';
};
}