nixos/home/steam/home.nix

26 lines
435 B
Nix
Raw Normal View History

2025-01-13 11:52:09 +08:00
{
pkgs,
lib,
config,
...
}:
with lib;
let
2024-01-07 21:50:42 +08:00
cfg = config.passthrough.steam;
enable = cfg.enable && (cfg.allUsers || (config.home.username == "app"));
package = config.programs.steam.package;
2025-01-13 11:52:09 +08:00
in
mkIf enable {
2024-01-07 21:50:42 +08:00
home.packages = with pkgs; [
cfg.package
cfg.package.run
];
2024-01-16 14:23:25 +08:00
wayland.windowManager.sway.config.window.commands = [
2025-01-13 11:52:09 +08:00
{
criteria.class = "steam";
command = "floating enable";
}
2024-01-16 14:23:25 +08:00
];
2024-01-07 21:50:42 +08:00
}