mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-09-13 14:02:02 +02:00
This commit is contained in:
parent
7e5d13ac3d
commit
0b297a99c1
2 changed files with 32 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
./docker
|
||||
./fonts
|
||||
./kvm
|
||||
./miracast
|
||||
./podman
|
||||
./spell-check
|
||||
];
|
||||
|
|
31
modules/system/miracast/default.nix
Normal file
31
modules/system/miracast/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
# 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue