add miracast module
This commit is contained in:
parent
513942976e
commit
d1466bbba3
2 changed files with 25 additions and 1 deletions
|
@ -18,10 +18,12 @@
|
|||
./gpg.nix
|
||||
./helix.nix
|
||||
./hub.nix
|
||||
./hyprland
|
||||
./kakoune.nix
|
||||
./kitty.nix
|
||||
./ledger
|
||||
./logseq.nix
|
||||
./miracast.nix
|
||||
./python.nix
|
||||
./rofi
|
||||
./spotify.nix
|
||||
|
@ -32,6 +34,5 @@
|
|||
./xmonad
|
||||
./zathura.nix
|
||||
./zsh.nix
|
||||
./hyprland
|
||||
];
|
||||
}
|
||||
|
|
23
modules/programs/miracast.nix
Normal file
23
modules/programs/miracast.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.my.programs.miracast;
|
||||
in
|
||||
{
|
||||
options.my.programs.miracast.enable = mkEnableOption "miracast";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 7236 7250 ];
|
||||
allowedUDPPorts = [ 7236 5353 ];
|
||||
};
|
||||
users.users.moritz.packages = with pkgs; [
|
||||
gnome-network-displays
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue