2023-05-31 22:42:02 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.programs.az-steam;
|
|
|
|
in
|
2022-01-03 17:51:24 +01:00
|
|
|
{
|
2023-05-31 22:42:02 +02:00
|
|
|
options = {
|
|
|
|
programs.az-steam.enable = lib.mkEnableOption "Enable Steam";
|
2022-01-03 17:51:24 +01:00
|
|
|
};
|
2023-05-31 22:42:02 +02:00
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.steam.enable = true;
|
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 27036 ];
|
|
|
|
allowedUDPPorts = [ 27031 ];
|
|
|
|
};
|
|
|
|
home-manager.users.${config.az-username} = {
|
|
|
|
home.file.".local/share/applications/steam.desktop".source = ./steam.desktop;
|
|
|
|
};
|
2022-01-10 18:42:57 +01:00
|
|
|
};
|
2022-01-03 17:51:24 +01:00
|
|
|
}
|