mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 12:31:55 -05:00
24 lines
578 B
Nix
24 lines
578 B
Nix
|
{ pkgs, lib, config, ... }: {
|
||
|
|
||
|
options = {
|
||
|
userServices.easyeffects.enable =
|
||
|
lib.mkEnableOption "EasyEffects user service.";
|
||
|
userServices.easyeffects.preset = lib.mkOption {
|
||
|
description = "Name of preset to start with.";
|
||
|
default = "";
|
||
|
type = lib.types.str;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf config.userServices.easyeffects.enable {
|
||
|
|
||
|
xdg.configFile."easyeffects/output/framework13.json".source =
|
||
|
./framework13.json;
|
||
|
|
||
|
services.easyeffects = {
|
||
|
enable = true;
|
||
|
preset = config.userServices.easyeffects.preset;
|
||
|
};
|
||
|
};
|
||
|
}
|