aboutsummaryrefslogtreecommitdiff
path: root/modules/rmpc/default.nix
blob: 429d00c158d6ee56688759eeedc7c43abad02331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
    };
  };
}