add: miracast support

This commit is contained in:
Franek 2025-03-14 18:59:13 +01:00
parent 893aa88155
commit 42751bf2f0
8 changed files with 23 additions and 39 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
hardware-configuration.nix
calib-data.bin
user-config.nix

View File

@ -7,7 +7,9 @@ let
pkgs = inputs.nixpkgs.legacyPackages.${system};
mkSystem = pkgs: hostname:
pkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
specialArgs = {
inherit inputs;
};
modules = [
./base-configuration.nix
./${hostname}

View File

@ -8,4 +8,16 @@ in {
networking.wireless.enable = pkgs.lib.mkIf wirelessEnabled true;
networking.wireless.userControlled.enable = pkgs.lib.mkIf wirelessEnabled true;
networking.firewall = {
trustedInterfaces = [ "p2p-wl+" ];
allowedTCPPorts = [
7236
7250
];
allowedUDPPorts = [
7236
5353
];
};
}

View File

@ -32,6 +32,11 @@
};
};
services.geoclue2 = {
enableWifi = true;
geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
};
services.dbus.enable = true;
services.pipewire = {
enable = true;

View File

@ -8,7 +8,6 @@ in {
./packages.nix # Packages to install
./programs.nix # Programs to enable
./theme.nix # System-wide/GTK theme
./portal.nix # Desktop portals
];
home = {
@ -25,3 +24,4 @@ in {
programs.home-manager.enable = true;
home.stateVersion = "24.11"; # DO NOT change this unless you know what you're doing!
}

View File

@ -1,25 +0,0 @@
{ pkgs, ... }:
let
portals = [
pkgs.xdg-desktop-portal
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-wlr
];
packages = portals ++ [
pkgs.darkman
];
in {
xdg.portal = {
enable = true;
extraPortals = portals;
config = {
common.default = "hyprland";
"org.freedesktop.impl.portal.Settings".default = "darkman";
};
};
home.packages = packages;
}

View File

@ -1,8 +1,6 @@
{ inputs, pkgs, ... }:
let
userConfig = import ../../user-config.nix;
in {
{
imports = [ ./fish ];
programs.pywal.enable = true;
@ -56,8 +54,6 @@ in {
pywalfox = "command -v pywalfox &>/dev/null && pywalfox light && pywalfox update";
};
settings.usegeoclue = userConfig.geoclue;
settings.lat = userConfig.latitude;
settings.lng = userConfig.longtitude;
settings.usegeoclue = true;
};
}

View File

@ -1,5 +0,0 @@
{
geoclue = true;
latitude = 0;
longtitude = 0;
}