This commit is contained in:
22
modules/home/easyeffects.nix
Normal file
22
modules/home/easyeffects.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, lib, pkgs, osConfig, ... }:
|
||||
|
||||
let cfg = config.sydnix.easyeffects;
|
||||
in {
|
||||
options.sydnix.easyeffects = {
|
||||
enable = lib.mkEnableOption "Easyeffects";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.easyeffects = {
|
||||
enable = true;
|
||||
extraPresets.thanks-ash =
|
||||
builtins.fromJSON
|
||||
(builtins.readFile ./easyeffects/thanks-ash.json);
|
||||
};
|
||||
|
||||
warnings = lib.optional (!osConfig.programs.dconf.enable) ''
|
||||
Easyeffects requires services.dconf.enable = true in the NixOS
|
||||
config.
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user