Extract music packages into separate file
Alan Pearce alan@alanpearce.eu
Mon, 06 Jul 2020 12:35:57 +0200
4 files changed, 25 insertions(+), 3 deletions(-)
M system/settings/user-interface.nix → system/settings/user-interface.nix
@@ -12,9 +12,6 @@ epdfview geeqie - cmus - playerctl - fish # for emacs-fish-completion lxappearance
M user/prefect.nix → user/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.nix → user/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 + ''; + }; +}