mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-09-13 14:02:02 +02:00
31 lines
491 B
Nix
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
|
|
];
|
|
};
|
|
}
|