summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-07 06:35:51 +0200
committertv <tv@shackspace.de>2015-07-07 06:35:51 +0200
commitf4b8b7a1df963ac6d28a77f84cf2687324f41aa5 (patch)
treef7f9b3e903b4f48fcf170a9cb4d8c1d462e0c7f2
parent0e3cf4d393fdba9fecd3548f55507f9f2d46aaf5 (diff)
nomic: init play {deepmix,groovesalad,ntslive}
-rw-r--r--modules/nomic/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/nomic/default.nix b/modules/nomic/default.nix
index 61310b392..e9d1bfc69 100644
--- a/modules/nomic/default.nix
+++ b/modules/nomic/default.nix
@@ -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;