nixos/modules/system/miracast/default.nix

32 lines
491 B
Nix
Raw Normal View History

2025-07-31 20:40:05 +02:00
# miracast related settings
{
config,
lib,
options,
pkgs,
...
}:
let
cfg = config.my.system.miracast;
in
{
options.my.system.miracast = with lib; {
enable = mkEnableOption "miracast configuration";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
gnome-network-displays
];
networking.firewall.allowedTCPPorts = [
7236
7250
];
networking.firewall.allowedUDPPorts = [
7236
5353
];
};
}