summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2020-07-06 12:35:57 +0200
committerAlan Pearce2020-07-06 12:35:57 +0200
commitc5266433b0890916ce5e16bb49ca4fdaaf33ee82 (patch)
tree2398929d20dccf58ab0bc47eca921c511fa38c4c /user/settings
parentb1e82312a749261c869a4c7e16ba87c0b5cef6e4 (diff)
downloadnixfiles-c5266433b0890916ce5e16bb49ca4fdaaf33ee82.tar.lz
nixfiles-c5266433b0890916ce5e16bb49ca4fdaaf33ee82.tar.zst
nixfiles-c5266433b0890916ce5e16bb49ca4fdaaf33ee82.zip
Extract music packages into separate file
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/music.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/settings/music.nix b/user/settings/music.nix
new file mode 100644
index 00000000..dd292c5d
--- /dev/null
+++ b/user/settings/music.nix
@@ -0,0 +1,23 @@
+{ config, pkgs, ... }:
+
+{
+  home.packages = with pkgs; [
+    cmus
+    playerctl
+  ];
+
+  xdg.dataFile."applications/cmus".source = pkgs.makeDesktopItem {
+    name = "cmus";
+    exec = "cmus";
+    comment = "C* Music Player";
+    desktopName = "cmus";
+    categories = "Application;Audio;AudioVideo;";
+    genericName = "Music Player";
+    terminal = "true";
+
+    # FIXME
+    extraEntries = ''
+      Path = /data/Home/Music/Beets
+    '';
+  };
+}