commit 40bebd9ea66d21e8f6ae204b25342272caa20d57
parent 697dba0d8a96ecf24b43490a33f09c785ce9b912
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 1 Jun 2020 14:10:08 +0200
users/vincent: add finances and mpd to desktop
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
3 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/users/vincent/desktop/default.nix b/users/vincent/desktop/default.nix
@@ -3,12 +3,14 @@
{
imports = [
# autorandr
+ ./finances.nix
./firefox.nix
./next.nix
./gtk.nix
./i3.nix
./keyboard.nix
./mpv.nix
+ ./mpd.nix
./redshift.nix
./xsession.nix
];
diff --git a/users/vincent/desktop/finances.nix b/users/vincent/desktop/finances.nix
@@ -0,0 +1,5 @@
+{ pkgs, ... }:
+
+{
+ home.packages = with pkgs; [ ledger ];
+}
diff --git a/users/vincent/desktop/mpd.nix b/users/vincent/desktop/mpd.nix
@@ -0,0 +1,25 @@
+{ config, lib, pkgs, ... }:
+
+with lib; {
+ services.mpd = {
+ enable = true;
+ # FIXME put this into an option
+ musicDirectory = "/net/sakhalin.home/export/gaia/music";
+ network.listenAddress = "any";
+ extraConfig = ''
+ audio_output {
+ type "pulse"
+ name "Local MPD"
+ }
+ '';
+ };
+ services.mpdris2 = {
+ enable = true;
+ mpd.host = "127.0.0.1";
+ };
+ home.packages = with pkgs; [
+ ario
+ mpc_cli
+ ncmpcpp
+ ];
+}