all repos — nixfiles @ c5266433b0890916ce5e16bb49ca4fdaaf33ee82

System and user configuration, managed by nix and home-manager

Extract music packages into separate file
Alan Pearce alan@alanpearce.eu
Mon, 06 Jul 2020 12:35:57 +0200
commit

c5266433b0890916ce5e16bb49ca4fdaaf33ee82

parent

b1e82312a749261c869a4c7e16ba87c0b5cef6e4

M system/settings/user-interface.nixsystem/settings/user-interface.nix
@@ -12,9 +12,6 @@     epdfview
     geeqie
 
-    cmus
-    playerctl
-
     fish # for emacs-fish-completion
 
     lxappearance
M user/prefect.nixuser/prefect.nix
@@ -14,6 +14,7 @@ ./settings/gnupg.nix     ./settings/i3.nix
     ./settings/javascript.nix
     ./settings/mail.nix
+    ./settings/music.nix
     ./settings/nixos.nix
     ./settings/rofi.nix
     ./settings/passwords.nix
M user/satoshipad.nixuser/satoshipad.nix
@@ -14,6 +14,7 @@ ./settings/gnupg.nix     ./settings/i3.nix
     ./settings/javascript.nix
     ./settings/mail.nix
+    ./settings/music.nix
     ./settings/nixos.nix
     ./settings/rofi.nix
     ./settings/passwords.nix
A 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
+    '';
+  };
+}