34 lines
631 B
Nix
Raw Normal View History

2024-07-19 14:00:55 +02:00
{
config,
lib,
pkgs,
...
}:
2024-07-18 13:48:49 +02:00
2024-07-19 14:00:55 +02:00
with lib;
{
2024-07-18 13:48:49 +02:00
options.modules.steam = {
enable = mkEnableOption "steam";
};
2025-01-26 13:16:06 +01:00
config = mkIf config.modules.steam.enable {
# Systemwide configuration
systemwide = {
modules.unfree.allowedPackages = [
"steam"
"steam-original"
"steam-unwrapped"
];
programs.steam.enable = true;
# Make steam create desktop entries in a subfolder
programs.steam.package = pkgs.steam.override {
extraBwrapArgs = [
"--bind $HOME/.local/share/applications/Steam $HOME/.local/share/applications"
];
};
};
};
2025-01-24 00:28:22 +01:00
}