mirror of
https://github.com/kmein/niveum
synced 2026-03-30 09:11:10 +02:00
Compare commits
4 Commits
78a50e9ae3
...
5e62f0363d
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e62f0363d | |||
| 1c8c210f06 | |||
| 48ce381be0 | |||
| 777f24e37e |
@@ -80,6 +80,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.pulseaudioFull; # for bluetooth sound output
|
package = pkgs.pulseaudioFull; # for bluetooth sound output
|
||||||
# copy server:/run/pulse/.config/pulse/cookie to client:~/.config/pulse/cookie to authenticate a client machine
|
# copy server:/run/pulse/.config/pulse/cookie to client:~/.config/pulse/cookie to authenticate a client machine
|
||||||
|
zeroconf.discovery.enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
load-module ${toString [
|
load-module ${toString [
|
||||||
"module-tunnel-sink-new"
|
"module-tunnel-sink-new"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
services.spotifyd = {
|
services.spotifyd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -6,9 +6,19 @@
|
|||||||
global = {
|
global = {
|
||||||
username = lib.strings.fileContents <secrets/spotify/username>;
|
username = lib.strings.fileContents <secrets/spotify/username>;
|
||||||
password = lib.strings.fileContents <secrets/spotify/password>;
|
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";
|
systemd.services.spotifyd.serviceConfig.Restart = "always";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ in {
|
|||||||
weechat = pkgs.weechat.override {
|
weechat = pkgs.weechat.override {
|
||||||
configure = { ... }: {
|
configure = { ... }: {
|
||||||
scripts = [ pkgs.weechatScripts.weechat-autosort nixpkgs-unstable.weechatScripts.colorize_nicks ];
|
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.nicks "kmein"
|
||||||
/set irc.server_default.msg_part "tschö mit ö"
|
/set irc.server_default.msg_part "tschö mit ö"
|
||||||
/set irc.server_default.msg_quit "ciao kakao"
|
/set irc.server_default.msg_quit "ciao kakao"
|
||||||
|
|||||||
0
packages/scripts/rfc.sh
Normal file → Executable file
0
packages/scripts/rfc.sh
Normal file → Executable file
@@ -19,12 +19,11 @@
|
|||||||
hardware.pulseaudio = {
|
hardware.pulseaudio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemWide = true;
|
systemWide = true;
|
||||||
extraConfig = ''
|
tcp = {
|
||||||
load-module ${toString [
|
enable = true;
|
||||||
"module-native-protocol-tcp"
|
anonymousClients.allowedIpRanges = [ "127.0.0.1" "10.243.2.0/24" "192.168.0.0/16" ];
|
||||||
"auth-ip-acl=127.0.0.1;10.243.2.0/24;192.168.0.0/16"
|
};
|
||||||
]}
|
zeroconf.publish.enable = true;
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ 4713 ];
|
networking.firewall.allowedTCPPorts = [ 4713 ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user