moved piper to module with enable option

This commit is contained in:
Leyla Becker 2025-09-02 23:20:24 -05:00
parent afcf415621
commit b7dd5328d0
4 changed files with 20 additions and 2 deletions

View file

@ -6,6 +6,7 @@
./makemkv.nix
./obs.nix
./anki.nix
./piper.nix
./qbittorrent.nix
./discord.nix
./obsidian.nix

View file

@ -0,0 +1,17 @@
{
lib,
pkgs,
config,
osConfig,
...
}: {
options.programs.piper = {
enable = lib.mkEnableOption "enable piper";
};
config = lib.mkIf config.programs.piper.enable {
home.packages = with pkgs; [
piper
];
};
}