summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-07-06 12:35:57 +0200
committerAlan Pearce2020-07-06 12:35:57 +0200
commitc5266433b0890916ce5e16bb49ca4fdaaf33ee82 (patch)
tree2398929d20dccf58ab0bc47eca921c511fa38c4c
parentb1e82312a749261c869a4c7e16ba87c0b5cef6e4 (diff)
downloadnixfiles-c5266433b0890916ce5e16bb49ca4fdaaf33ee82.tar.lz
nixfiles-c5266433b0890916ce5e16bb49ca4fdaaf33ee82.tar.zst
nixfiles-c5266433b0890916ce5e16bb49ca4fdaaf33ee82.zip
Extract music packages into separate file
-rw-r--r--system/settings/user-interface.nix3
-rw-r--r--user/prefect.nix1
-rw-r--r--user/satoshipad.nix1
-rw-r--r--user/settings/music.nix23
4 files changed, 25 insertions, 3 deletions
diff --git a/system/settings/user-interface.nix b/system/settings/user-interface.nix
index 17c01997..a83b6e73 100644
--- a/system/settings/user-interface.nix
+++ b/system/settings/user-interface.nix
@@ -12,9 +12,6 @@
     epdfview
     geeqie
 
-    cmus
-    playerctl
-
     fish # for emacs-fish-completion
 
     lxappearance
diff --git a/user/prefect.nix b/user/prefect.nix
index c4f6ea0d..382cc751 100644
--- a/user/prefect.nix
+++ b/user/prefect.nix
@@ -14,6 +14,7 @@
     ./settings/i3.nix
     ./settings/javascript.nix
     ./settings/mail.nix
+    ./settings/music.nix
     ./settings/nixos.nix
     ./settings/rofi.nix
     ./settings/passwords.nix
diff --git a/user/satoshipad.nix b/user/satoshipad.nix
index e2a513d5..f86e049f 100644
--- a/user/satoshipad.nix
+++ b/user/satoshipad.nix
@@ -14,6 +14,7 @@
     ./settings/i3.nix
     ./settings/javascript.nix
     ./settings/mail.nix
+    ./settings/music.nix
     ./settings/nixos.nix
     ./settings/rofi.nix
     ./settings/passwords.nix
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
+    '';
+  };
+}