1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 04:41:07 +01:00

4 Commits

5 changed files with 18 additions and 8 deletions

View File

@@ -80,6 +80,7 @@ in {
enable = true;
package = pkgs.pulseaudioFull; # for bluetooth sound output
# copy server:/run/pulse/.config/pulse/cookie to client:~/.config/pulse/cookie to authenticate a client machine
zeroconf.discovery.enable = true;
extraConfig = ''
load-module ${toString [
"module-tunnel-sink-new"

View File

@@ -1,4 +1,4 @@
{ lib, ... }:
{ config, lib, ... }:
{
services.spotifyd = {
enable = true;
@@ -6,9 +6,19 @@
global = {
username = lib.strings.fileContents <secrets/spotify/username>;
password = lib.strings.fileContents <secrets/spotify/password>;
backend = "pulseaudio";
bitrate = 320;
device_type = "s_t_b"; # set-top box
device_name = config.networking.hostName;
};
};
};
# ref https://github.com/NixOS/nixpkgs/issues/71362#issuecomment-753461502
hardware.pulseaudio.extraConfig = ''
unload-module module-native-protocol-unix
load-module module-native-protocol-unix auth-anonymous=1
'';
systemd.services.spotifyd.serviceConfig.Restart = "always";
}

View File

@@ -24,7 +24,7 @@ in {
weechat = pkgs.weechat.override {
configure = { ... }: {
scripts = [ pkgs.weechatScripts.weechat-autosort nixpkgs-unstable.weechatScripts.colorize_nicks ];
init = let coolColors = lib.lists.subtractLists (lib.range 232 239) (lib.range 31 254); in ''
init = let coolColors = lib.lists.subtractLists (lib.range 52 69 ++ lib.range 231 248) (lib.range 31 254); in ''
/set irc.server_default.nicks "kmein"
/set irc.server_default.msg_part "tschö mit ö"
/set irc.server_default.msg_quit "ciao kakao"

0
packages/scripts/rfc.sh Normal file → Executable file
View File

View File

@@ -19,12 +19,11 @@
hardware.pulseaudio = {
enable = true;
systemWide = true;
extraConfig = ''
load-module ${toString [
"module-native-protocol-tcp"
"auth-ip-acl=127.0.0.1;10.243.2.0/24;192.168.0.0/16"
]}
'';
tcp = {
enable = true;
anonymousClients.allowedIpRanges = [ "127.0.0.1" "10.243.2.0/24" "192.168.0.0/16" ];
};
zeroconf.publish.enable = true;
};
networking.firewall.allowedTCPPorts = [ 4713 ];
}