aboutsummaryrefslogtreecommitdiff
path: root/modules/rmpc/default.nix
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-07-27 14:28:38 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-07-27 14:28:38 -0400
commit60b33d6edc6eff5142c2def85a07406ff867b5e5 (patch)
treea73b13941e2b1bc2d8f49162c9bb9258a52b03c2 /modules/rmpc/default.nix
parentfcb37bdf9e6107f1d34ff05c8558021d67a0aeec (diff)
downloadhome-60b33d6edc6eff5142c2def85a07406ff867b5e5.tar.gz
modules/rmpc: initial config, song change notifications
Diffstat (limited to 'modules/rmpc/default.nix')
-rw-r--r--modules/rmpc/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/rmpc/default.nix b/modules/rmpc/default.nix
new file mode 100644
index 0000000..429d00c
--- /dev/null
+++ b/modules/rmpc/default.nix
@@ -0,0 +1,24 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+let
+ cfg = config.modules.rmpc;
+in
+{
+ options.modules.rmpc.enable = lib.mkEnableOption "rmpc";
+
+ config = lib.mkIf cfg.enable {
+ home.packages = [
+ pkgs.rmpc
+ ];
+
+ xdg.configFile."rmpc/config.ron".source = ./config.ron;
+ xdg.configFile."rmpc/notify.sh" = {
+ source = ./notify.sh;
+ executable = true;
+ };
+ };
+}