Compare commits

..

No commits in common. "289bb07cc2e09d3d37e575c5490071c73992f90a" and "2ff5b5e0574a07a805ca3744010371fe518dfba2" have entirely different histories.

4 changed files with 18 additions and 53 deletions

View file

@ -1,32 +0,0 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.schmittlauch.audio-sharing;
fwPort = 8554;
in
{
options.schmittlauch.audio-sharing = {
enable = lib.mkEnableOption "enable Gnome audio-sharing application via rtsp";
openFirewall = lib.mkOption {
default = true;
type = lib.types.bool;
description = "Opens the port ${toString fwPort} to allow access to the rtsp stream";
};
};
config = lib.mkMerge [
(lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.audio-sharing ];
})
(lib.mkIf (cfg.enable && cfg.openFirewall) {
networking.firewall = {
allowedUDPPorts = [ fwPort ];
allowedTCPPorts = [ fwPort ];
};
})
];
}

View file

@ -16,7 +16,6 @@ in
./nix-settings.nix ./nix-settings.nix
./upgrade-diff.nix ./upgrade-diff.nix
./guest.nix ./guest.nix
./audio-sharing.nix
]; ];
services.davfs2.enable = true; services.davfs2.enable = true;

36
flake.lock generated
View file

@ -102,11 +102,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1767910483, "lastModified": 1767850628,
"narHash": "sha256-MOU5YdVu4DVwuT5ztXgQpPuRRBjSjUGIdUzOQr9iQOY=", "narHash": "sha256-D3QzdIT11J66I4mzwmIpAGLzPAcbCS2VaKN8fmOe6+E=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "82fb7dedaad83e5e279127a38ef410bcfac6d77c", "rev": "8c8a16d41353a174767c38b962359b51a56ca02e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -179,11 +179,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1768397375, "lastModified": 1767185284,
"narHash": "sha256-7QqbFi3ERvKjEdAzEYPv7iSGwpUKSrQW5wPLMFq45AQ=", "narHash": "sha256-ljDBUDpD1Cg5n3mJI81Hz5qeZAwCGxon4kQW3Ho3+6Q=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "efe2094529d69a3f54892771b6be8ee4a0ebef0f", "rev": "40b1a28dce561bea34858287fbb23052c3ee63fe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -195,11 +195,11 @@
}, },
"nixos-unstable": { "nixos-unstable": {
"locked": { "locked": {
"lastModified": 1768305791, "lastModified": 1767767207,
"narHash": "sha256-AIdl6WAn9aymeaH/NvBj0H9qM+XuAuYbGMZaP0zcXAQ=", "narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1412caf7bf9e660f2f962917c14b1ea1c3bc695e", "rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -227,11 +227,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1768323494, "lastModified": 1767799921,
"narHash": "sha256-yBXJLE6WCtrGo7LKiB6NOt6nisBEEkguC/lq/rP3zRQ=", "narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2c3e5ec5df46d3aeee2a1da0bfedd74e21f4bf3a", "rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -243,11 +243,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1768305791, "lastModified": 1767767207,
"narHash": "sha256-AIdl6WAn9aymeaH/NvBj0H9qM+XuAuYbGMZaP0zcXAQ=", "narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1412caf7bf9e660f2f962917c14b1ea1c3bc695e", "rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -263,11 +263,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1768451253, "lastModified": 1767883949,
"narHash": "sha256-lrrqQuxIIlHn4TzOMDkhd/fhuDLtHJsXLuJ8x3SCn4o=", "narHash": "sha256-emo9Kb/J/lTHgELg2E39kGIv3qlLtGWFpv75BKnmGGU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "216f5786b653a68a7618296c8d54dde43644ab56", "rev": "9e297caa8eb66f91378169bc813e4256e1dc9058",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -83,6 +83,4 @@ in
pkgs.framework-tool pkgs.framework-tool
unstable.amd-debug-tools unstable.amd-debug-tools
]; ];
schmittlauch.audio-sharing.enable = true;
} }