nixos/modules/system/miracast/default.nix
Felix Buehler 0b297a99c1
Some checks are pending
/ Build Nix targets (push) Waiting to run
system/miracast: init
2025-07-31 22:26:51 +02:00

31 lines
491 B
Nix

# 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
];
};
}