Commit 40bebd9ea66d

Vincent Demeester <vincent@sbr.pm>
2020-06-01 14:10:08
users/vincent: add finances and mpd to desktop
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 697dba0
Changed files (3)
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
   ];
users/vincent/desktop/finances.nix
@@ -0,0 +1,5 @@
+{ pkgs, ... }:
+
+{
+  home.packages = with pkgs; [ ledger ];
+}
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
+  ];
+}