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