nomic: init play {deepmix,groovesalad,ntslive}

This commit is contained in:
tv 2015-07-07 06:35:51 +02:00
parent 0e3cf4d393
commit f4b8b7a1df

View file

@ -55,6 +55,24 @@ in
"net.ipv6.conf.default.use_tempaddr" = 2;
};
environment.systemPackages = with pkgs; [
(writeScriptBin "play" ''
#! /bin/sh
set -euf
mpv() { ${mpv}/bin/mpv "$@"; }
case $1 in
deepmix) mpv http://deepmix.ru/deepmix128.pls;;
groovesalad) mpv http://somafm.com/play/groovesalad;;
ntslive) mpv http://listen2.ntslive.co.uk/listen.pls;;
*)
echo "$0: bad argument: $*" >&2
exit 23
esac
'')
rxvt_unicode.terminfo
tmux
];
networking = {
hostName = "nomic";
wireless.enable = true;