Compare commits

..

6 Commits

Author SHA1 Message Date
Giulio De Pasquale
4d6a5292d9 Merge branch 'master' of ssh://git.giugl.io/peperunas/nixos 2024-12-16 10:38:02 +00:00
Giulio De Pasquale
1219b42ba0 fix(sunshine.nix): update gamescope command with additional flags 2024-12-16 10:35:25 +00:00
Giulio De Pasquale
5f79653e0b fix(jellyseer.nix): add "lan" to dnsInterfaces 2024-12-16 10:35:09 +00:00
Giulio De Pasquale
884932435c fix(architect/prowlarr.nix): add "lan" to dnsInterfaces 2024-12-16 10:34:50 +00:00
Giulio De Pasquale
18670f96e8 refactor(homeassistant.nix): comment out unused Wyoming services 2024-12-16 10:31:17 +00:00
Giulio De Pasquale
07e7e53663 feat(homeassistant.nix): add go2rtc service and new integrations 2024-12-16 10:29:40 +00:00
4 changed files with 28 additions and 21 deletions

View File

@ -9,26 +9,31 @@ let
whisperPort = 10300;
in
{
services.wyoming = {
faster-whisper = {
servers."home" = {
enable = true;
uri = "tcp://127.0.0.1:${toString whisperPort}";
model = "large-v3";
device = "cuda";
language = "en";
};
};
piper = {
servers."home" = {
enable = true;
uri = "tcp://127.0.0.1:${toString piperPort}";
voice = "en-us-ryan-medium";
lengthScale = 0.63;
};
};
services.go2rtc = {
enable = true;
settings.api.listen = "127.0.0.1:1984";
};
# services.wyoming = {
# faster-whisper = {
# servers."home" = {
# enable = true;
# uri = "tcp://127.0.0.1:${toString whisperPort}";
# model = "large-v3";
# device = "cuda";
# language = "en";
# };
# };
# piper = {
# servers."home" = {
# enable = true;
# uri = "tcp://127.0.0.1:${toString piperPort}";
# voice = "en-us-ryan-medium";
# lengthScale = 0.63;
# };
# };
# };
services.home-assistant = {
enable = true;
package = pkgs.unstablePkgs.home-assistant;
@ -1105,6 +1110,8 @@ in
"mqtt_statestream"
"github"
"webostv"
"reolink"
"onvif"
];
extraPackages = python3Packages: with python3Packages; [
pkgs.openai-whisper

View File

@ -10,7 +10,7 @@ in
};
architect.vhost.${domain} = {
dnsInterfaces = [ "tailscale" ];
dnsInterfaces = [ "tailscale" "lan" ];
locations."/" = {
port = config.services.jellyseerr.port;
allowLan = true;

View File

@ -10,7 +10,7 @@ in
};
architect.vhost.${domain} = with config.architect.networks; {
dnsInterfaces = [ "tailscale" ];
dnsInterfaces = [ "tailscale" "lan" ];
locations."/" = {
port = 9696;

View File

@ -102,7 +102,7 @@ in
apps = [
{
name = "Steam";
cmd = ''${pkgs.bash}/bin/bash -c "${pkgs.gamescope}/bin/gamescope -f --hdr-enabled -e -W ''${SUNSHINE_CLIENT_WIDTH} -H ''${SUNSHINE_CLIENT_HEIGHT} -r ''${SUNSHINE_CLIENT_FPS} -- ${pkgs.steam}/bin/steam"'';
cmd = ''${pkgs.bash}/bin/bash -c "${pkgs.gamescope}/bin/gamescope --immediate-flips --rt -C 3000 -f --hdr-enabled -e -W ''${SUNSHINE_CLIENT_WIDTH} -H ''${SUNSHINE_CLIENT_HEIGHT} -r ''${SUNSHINE_CLIENT_FPS} -- ${pkgs.steam}/bin/steam"'';
prep-cmd = [
{
do = ''${pkgs.bash}/bin/bash -c "${resolutionScript}/bin/resolution.sh ''${SUNSHINE_CLIENT_WIDTH} ''${SUNSHINE_CLIENT_HEIGHT}" ''${SUNSHINE_CLIENT_FPS}"'';