diff --git a/config/hosts/samhain/configuration.nix b/config/hosts/samhain/configuration.nix index 98156772..8d31feda 100644 --- a/config/hosts/samhain/configuration.nix +++ b/config/hosts/samhain/configuration.nix @@ -25,10 +25,13 @@ networking.useDHCP = false; networking.interfaces.enp34s0.useDHCP = true; networking.firewall.allowPing = true; - networking.firewall.allowedTCPPorts = [ 80 445 139 9091 ]; # smb transmission + networking.firewall.allowedTCPPorts = [ 80 445 139 9091 5000 32101 ]; # smb transmission mkchromecast networking.firewall.allowedUDPPorts = [ 137 138 4010 ]; # smb scream + networking.firewall.allowedUDPPortRanges = [ + { from = 32768; to = 60999; } # dnla + ]; + services.avahi.enable = true; system.stateVersion = "20.09"; - } diff --git a/config/private b/config/private index d6d56885..f416f5da 160000 --- a/config/private +++ b/config/private @@ -1 +1 @@ -Subproject commit d6d568854493638c4db2c2aeb2b80ccef7a29c34 +Subproject commit f416f5da9e7b4dbf24730baf2a582c374532c6f2 diff --git a/config/profiles/gui/home/music.nix b/config/profiles/gui/home/music.nix index 3e8ecf79..8d2fa807 100644 --- a/config/profiles/gui/home/music.nix +++ b/config/profiles/gui/home/music.nix @@ -66,7 +66,20 @@ audio_output { type "pulse" name "speaker" - } + + + + audio_output { + type "httpd" + name "httpd-high" + encoder "opus" + bitrate "96000" + port "32101" + max_clients "4" + format "48000:16:2" + always_on "yes" + tags "yes" + } ''; }; }; diff --git a/config/profiles/gui/home/packages.nix b/config/profiles/gui/home/packages.nix index 229f5eae..33527bc2 100644 --- a/config/profiles/gui/home/packages.nix +++ b/config/profiles/gui/home/packages.nix @@ -20,6 +20,7 @@ thunderbird unstable.syncplay unstable.youtube-dl + unstable.mkchromecast unstable.google-chrome v4l-utils transmission-gtk diff --git a/config/profiles/gui/nixos/sound.nix b/config/profiles/gui/nixos/sound.nix index 4e1c2a81..c971ecdf 100644 --- a/config/profiles/gui/nixos/sound.nix +++ b/config/profiles/gui/nixos/sound.nix @@ -11,9 +11,14 @@ hardware.pulseaudio = { enable = true; daemon.config = { - default-sample-format = "s24le"; - default-sample-rate = 96000; - resample-method = "soxr-vhq"; + exit-idle-time = 5; + resample-method = "speex-float-5"; + avoid-resampling = "true"; + flat-volumes = "no"; + default-sample-format = "s32le"; + default-sample-rate = 48000; + alternate-sample-rate = 44100; + default-sample-channels = 2; }; }; }; diff --git a/config/profiles/kat/home/vim/vimrc.nix b/config/profiles/kat/home/vim/vimrc.nix index 66f5ce05..06f4f308 100644 --- a/config/profiles/kat/home/vim/vimrc.nix +++ b/config/profiles/kat/home/vim/vimrc.nix @@ -201,4 +201,3 @@ nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '', ''', 'g')p '' else "") - diff --git a/config/profiles/sway/home/sway.nix b/config/profiles/sway/home/sway.nix index 37265b77..b8906f9b 100644 --- a/config/profiles/sway/home/sway.nix +++ b/config/profiles/sway/home/sway.nix @@ -75,6 +75,9 @@ command = "systemctl --user restart mako"; always = true; } + { + command = "mkchromecast -t"; + } { command = "${pkgs.swayidle}/bin/swayidle -w before-sleep '${lockCommand}'";